<?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: story global variables in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/story-global-variables/m-p/60537#M28663</link>
    <description>I surmised as much. But even when asking a placed object to report variable values via the PRINT function I still received incorrect (i.e. zero) for the value of S~ even when clearly it shouldn't have been.&lt;BR /&gt;
&lt;BR /&gt;
Go figure. &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_rolleyes.gif" style="display : inline;" /&gt; Thanks.</description>
    <pubDate>Sun, 30 Mar 2008 02:16:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-03-30T02:16:18Z</dc:date>
    <item>
      <title>story global variables</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/story-global-variables/m-p/60534#M28660</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I can't seem to get these variables to report values reliably - any tips? &lt;BR /&gt;
&lt;BR /&gt;
For example, no matter what I do, S~, or GLOB_CH_STORY_DIST always reports a value of 0, no matter what story I'm on or what story the object is on.&lt;BR /&gt;
&lt;BR /&gt;
I'm developing an object, using these in the 2D script window, and examining values (or trying to) using the PRINT function to report values.&lt;BR /&gt;
&lt;BR /&gt;
What am I missing?&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 May 2023 10:01:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/story-global-variables/m-p/60534#M28660</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-24T10:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: story global variables</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/story-global-variables/m-p/60535#M28661</link>
      <description>Well OK - the part works beautifully, but never could get the variable to report the value it obviously is taking... since the script works.&lt;BR /&gt;
&lt;BR /&gt;
So if anyone can explain the mechanism just to satisfy curiosity we'll call it a day.&lt;BR /&gt;
&lt;BR /&gt;
(BTW - the object is a pipe column with parametric baseplate for bolting - where the baseplate is not shown above the home story - simple, really.)&lt;BR /&gt;
&lt;BR /&gt;
Enjoy the weekend.</description>
      <pubDate>Fri, 28 Mar 2008 23:23:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/story-global-variables/m-p/60535#M28661</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-28T23:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: story global variables</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/story-global-variables/m-p/60536#M28662</link>
      <description>The story and other err environment-related variables have 'instance-specific' values that you will not be able to access as you script the soul of your object in Limbo. Once the object is placed, your script will read the value for each of the individual instances and respond individually to each of them. Like when you say 'divide age by 2 and add 7 to get the optimal age for a girlfriend', you still need the individual guy for the formula to give you the girl value.</description>
      <pubDate>Sat, 29 Mar 2008 04:45:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/story-global-variables/m-p/60536#M28662</guid>
      <dc:creator>Ignacio Azpiazu</dc:creator>
      <dc:date>2008-03-29T04:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: story global variables</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/story-global-variables/m-p/60537#M28663</link>
      <description>I surmised as much. But even when asking a placed object to report variable values via the PRINT function I still received incorrect (i.e. zero) for the value of S~ even when clearly it shouldn't have been.&lt;BR /&gt;
&lt;BR /&gt;
Go figure. &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_rolleyes.gif" style="display : inline;" /&gt; Thanks.</description>
      <pubDate>Sun, 30 Mar 2008 02:16:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/story-global-variables/m-p/60537#M28663</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-30T02:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: story global variables</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/story-global-variables/m-p/60538#M28664</link>
      <description>i am not sure some one may need to confirm this but i think there is a global variable GLOB_HSTORY_INDEX that returns the story number that the object is placed on as displayed in the story settings&lt;BR /&gt;
&lt;BR /&gt;
S~ is always 0 in relation to the story that the object is place on i have used it if i wish to control the appearence of ojects over different stories&lt;BR /&gt;
&lt;BR /&gt;
for example a timber beam you may wish to show as a rectangle on the&lt;BR /&gt;
inserted storey but on the storey below you may want to show as a dashed line</description>
      <pubDate>Mon, 31 Mar 2008 03:46:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/story-global-variables/m-p/60538#M28664</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-31T03:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: story global variables</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/story-global-variables/m-p/60539#M28665</link>
      <description>have to correct myself if you wish to display the storey an object is placed on use&lt;BR /&gt;
&lt;BR /&gt;
rrr= REQUEST ("Story", "", index, story_name)&lt;BR /&gt;
&lt;BR /&gt;
text2 0,0, index</description>
      <pubDate>Mon, 31 Mar 2008 04:53:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/story-global-variables/m-p/60539#M28665</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-31T04:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: story global variables</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/story-global-variables/m-p/60540#M28666</link>
      <description>&lt;A href="http://www.archicadwiki.com/Global_GDL_Parameters?highlight=%28FrontPage%29%7C%28Category%29%7C%28TechNotes%29%7C%28Bugs%29%7C%28CategoryGdl%29" target="_blank"&gt;Global GDL Parameters&lt;/A&gt;
&lt;BLOCKQUOTE&gt;&lt;B&gt;GLOB_CH_STORY_DIST&lt;/B&gt;&lt;BR /&gt;
&lt;B&gt;Old name:&lt;/B&gt; S~&lt;BR /&gt;
&lt;B&gt;Type:&lt;/B&gt; numerical (integer value)&lt;BR /&gt;
&lt;B&gt;Possible range:&lt;/B&gt; positive or negative or zero.&lt;BR /&gt;
Returns a number giving the relative position of the current story to the home story of the Library Part. The value of the variable is calculated by deducting the story number of the home story from the story number of the current story. Since there is no story-related information in the 3D Window, there the variable does not return a valid value.&lt;/BLOCKQUOTE&gt;

I used this global parameter in only one element - the ventilation hole. This helped me to make different 2D drawing on different stories. See screenshot.&lt;BR /&gt;
To use this feature you want to include the option "Show on All stories." &lt;BR /&gt;
&lt;BR /&gt;
Sample 2D-script:
&lt;PRE&gt;IF GLOB_CH_STORY_DIST &amp;lt; 0 OR GLOB_CH_STORY_DIST &amp;gt; nShowStory THEN END
IF GLOB_CH_STORY_DIST = 0 THEN
   !!!A description of part symbol, which is present only in the home story of element.
ENDIF
   !!!A description of part symbol, which is present in all authorized stories.
END&lt;/PRE&gt;

&lt;B&gt;nShowStory&lt;/B&gt; - integer value. It specify the number of stories on which element will be shown.</description>
      <pubDate>Mon, 31 Mar 2008 10:25:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/story-global-variables/m-p/60540#M28666</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-31T10:25:44Z</dc:date>
    </item>
  </channel>
</rss>

