<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Global view dependent 2d scripts.. HOW? in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Global-view-dependent-2d-scripts-HOW/m-p/220952#M5287</link>
    <description>What I was trying to say is that the 2D script is not read in the sections and elevations (if the object was place in the plan view).&lt;BR /&gt;
It is the 3D script you need to alter.&lt;BR /&gt;
&lt;BR /&gt;
i.e.
&lt;PRE&gt;IF GLOB_VIEW_TYPE = 3 then
	SPHERE 1.0
ENDIF
IF GLOB_VIEW_TYPE = 4 then
	BLOCK 1.0,1.0,1.0
ENDIF&lt;/PRE&gt;

&lt;BR /&gt;
Barry.</description>
    <pubDate>Fri, 18 Aug 2017 01:10:44 GMT</pubDate>
    <dc:creator>Barry Kelly</dc:creator>
    <dc:date>2017-08-18T01:10:44Z</dc:date>
    <item>
      <title>Global view dependent 2d scripts.. HOW?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Global-view-dependent-2d-scripts-HOW/m-p/220949#M5284</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi Guys.&lt;BR /&gt;
&lt;BR /&gt;
Im currently scripting a tree object using AC21, I  need to define 2d scripts for plan (default 2d scriptpage) section, and elevation. &lt;BR /&gt;
It´s no proplem doing the script for the plan view, as this is the default. But defining section and elevation views have become a challenge. I have tried:&lt;BR /&gt;
&lt;BR /&gt;
IF GLOB_VIEW_TYPE = 4 THEN  (Section)&lt;BR /&gt;
&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;2dscript..........&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
IF GLOB_VIEW_TYPE = 5 THEN (Elevation)&lt;BR /&gt;
&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;2dscript....&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
However viewing the model in Section and elevations Ac still sows a projection of the 3d model/script. &lt;BR /&gt;
&lt;BR /&gt;
What am I missing here?&lt;BR /&gt;
&lt;BR /&gt;
Any &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;simple&lt;E&gt;&lt;/E&gt; tips &amp;amp; tricks would be highly appreciated&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 16 Aug 2017 13:42:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Global-view-dependent-2d-scripts-HOW/m-p/220949#M5284</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-16T13:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Global view dependent 2d scripts.. HOW?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Global-view-dependent-2d-scripts-HOW/m-p/220950#M5285</link>
      <description>If you are placing the object in plan then there is no point scripting in the 2D script for sections and elevations.&lt;BR /&gt;
These use the 3D script.&lt;BR /&gt;
So you need to either place the object again in the elevation view (I think this might work but have not tested) or better do your 'if section/elevation' bit in the 3D script.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Thu, 17 Aug 2017 01:23:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Global-view-dependent-2d-scripts-HOW/m-p/220950#M5285</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2017-08-17T01:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Global view dependent 2d scripts.. HOW?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Global-view-dependent-2d-scripts-HOW/m-p/220951#M5286</link>
      <description>Hi Barry Kelly. Thx´for the reply...&lt;BR /&gt;
&lt;BR /&gt;
I´m aware, and a frequent user the "PROJECT2..." codes however this time it´s different&lt;BR /&gt;
&lt;BR /&gt;
Im on a quest to create a simple "tree object" the challenge is to create a simple 3d geo. for the tree, above and below terrain level. &lt;BR /&gt;
Furthermore there´s specific demands for the 2d expressions ex. different fills for roots and crown etc. &lt;BR /&gt;
&lt;BR /&gt;
Thus I need to script different graphics for the different views, in order to create satisfying 2d graphics&lt;BR /&gt;
&lt;BR /&gt;
..So I need to control which 2d script is read in different Global views...&lt;BR /&gt;
 &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_confused.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
Just like MVO settings...&lt;BR /&gt;
&lt;BR /&gt;
It should be possible!?</description>
      <pubDate>Thu, 17 Aug 2017 18:49:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Global-view-dependent-2d-scripts-HOW/m-p/220951#M5286</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-17T18:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Global view dependent 2d scripts.. HOW?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Global-view-dependent-2d-scripts-HOW/m-p/220952#M5287</link>
      <description>What I was trying to say is that the 2D script is not read in the sections and elevations (if the object was place in the plan view).&lt;BR /&gt;
It is the 3D script you need to alter.&lt;BR /&gt;
&lt;BR /&gt;
i.e.
&lt;PRE&gt;IF GLOB_VIEW_TYPE = 3 then
	SPHERE 1.0
ENDIF
IF GLOB_VIEW_TYPE = 4 then
	BLOCK 1.0,1.0,1.0
ENDIF&lt;/PRE&gt;

&lt;BR /&gt;
Barry.</description>
      <pubDate>Fri, 18 Aug 2017 01:10:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Global-view-dependent-2d-scripts-HOW/m-p/220952#M5287</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2017-08-18T01:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Global view dependent 2d scripts.. HOW?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Global-view-dependent-2d-scripts-HOW/m-p/220953#M5288</link>
      <description>Ahhh  There it is..   &lt;BR /&gt;
&lt;BR /&gt;
I see now, that´s what you wrote in the first reply, sorry for not getting it the first time.&lt;BR /&gt;
&lt;BR /&gt;
I was so focused on the 2d script. I couldn´t imagine I had to do it in the 3d script.&lt;BR /&gt;
&lt;BR /&gt;
Thank you. You just made my day &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
M7</description>
      <pubDate>Fri, 18 Aug 2017 07:06:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Global-view-dependent-2d-scripts-HOW/m-p/220953#M5288</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-18T07:06:19Z</dc:date>
    </item>
  </channel>
</rss>

