<?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: Request - Current Story Height in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Request-Current-Story-Height/m-p/225412#M7298</link>
    <description>Thanks Barry!&lt;BR /&gt;
&lt;BR /&gt;
Now, if we bring this example to Parameters script.&lt;BR /&gt;
&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;&lt;BR /&gt;
n = REQUEST ("Story_info", expr, nStories,index1, name, elev, height) &lt;BR /&gt;
&lt;BR /&gt;
parameters cstory_height = &lt;B&gt;height&lt;/B&gt;&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
When I go to Parameters List, the value of &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;cstory_height&lt;E&gt;&lt;/E&gt; parameter (that I have created) is always of the ground floor one.&lt;BR /&gt;
&lt;BR /&gt;
Is there a simple way to replace the info about the Current Story?</description>
    <pubDate>Wed, 31 Aug 2016 13:07:01 GMT</pubDate>
    <dc:creator>MuriloNoleto</dc:creator>
    <dc:date>2016-08-31T13:07:01Z</dc:date>
    <item>
      <title>Request - Current Story Height</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Request-Current-Story-Height/m-p/225410#M7296</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hello everyone,&lt;BR /&gt;
&lt;BR /&gt;
I have been doing tests in 2D script about REQUEST options, when I write this text:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
n = REQUEST ("Story_info", expr, nStories,index1, name, elev, height)&lt;BR /&gt;
&lt;BR /&gt;
text2 0,0,&lt;B&gt; height&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
In 2D preview, the value "height" shows the height of Ground Floor. In this case, I want that it shows the height the current floor (if some project has many stories).&lt;BR /&gt;
&lt;BR /&gt;
In versions before AC 20 the GLOB_CSTORY_HEIGHT variable was a solution.&lt;BR /&gt;
&lt;BR /&gt;
What do you suggest?&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance.&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 31 Aug 2016 12:08:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Request-Current-Story-Height/m-p/225410#M7296</guid>
      <dc:creator>MuriloNoleto</dc:creator>
      <dc:date>2016-08-31T12:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Request - Current Story Height</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Request-Current-Story-Height/m-p/225411#M7297</link>
      <description>GLOB_CSTORY_HEIGHT should still be fine if used in the 2D script.&lt;BR /&gt;
Just don't use it in the Parameter (or Master) script.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Wed, 31 Aug 2016 12:52:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Request-Current-Story-Height/m-p/225411#M7297</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2016-08-31T12:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Request - Current Story Height</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Request-Current-Story-Height/m-p/225412#M7298</link>
      <description>Thanks Barry!&lt;BR /&gt;
&lt;BR /&gt;
Now, if we bring this example to Parameters script.&lt;BR /&gt;
&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;&lt;BR /&gt;
n = REQUEST ("Story_info", expr, nStories,index1, name, elev, height) &lt;BR /&gt;
&lt;BR /&gt;
parameters cstory_height = &lt;B&gt;height&lt;/B&gt;&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
When I go to Parameters List, the value of &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;cstory_height&lt;E&gt;&lt;/E&gt; parameter (that I have created) is always of the ground floor one.&lt;BR /&gt;
&lt;BR /&gt;
Is there a simple way to replace the info about the Current Story?</description>
      <pubDate>Wed, 31 Aug 2016 13:07:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Request-Current-Story-Height/m-p/225412#M7298</guid>
      <dc:creator>MuriloNoleto</dc:creator>
      <dc:date>2016-08-31T13:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Request - Current Story Height</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Request-Current-Story-Height/m-p/225413#M7299</link>
      <description>From the GDL manual is says ...&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;If expr is a numerical expression, it means a story index: only the number of stories and the information on the specified story is returned.
&lt;/BLOCKQUOTE&gt;

So if you have 'expr' and a number (say 0) then you will get info only for the storey starting at story 0.&lt;BR /&gt;
Not sure how this works in the USA version as there is no 0 story.&lt;BR /&gt;
&lt;BR /&gt;
If you set it to 1 then you will get info for story 1.&lt;BR /&gt;
&lt;BR /&gt;
I think your problem will be you can't REQUEST the story because that can only be done in the 2D script - where you then can't save parameters.&lt;BR /&gt;
You can't REQUST the current story in the parameter script because this can no longer be done.&lt;BR /&gt;
&lt;BR /&gt;
If you set 'expr' as a string then you can get all info for all storey as an array.&lt;BR /&gt;
&lt;BR /&gt;
Again from the manual ...&lt;BR /&gt;

&lt;PRE&gt;DIM t[]
n = REQUEST ("STORY_INFO", "", nr, t)
FOR i = 1 TO nr
nr = STR ("%.0m", t [4 * (i - 1) + 1])
name = t [4 * (i - 1) + 2]
elevation = STR ("%m", t [4 * (i - 1) + 3])
height = STR ("%m", t [4 * (i - 1) + 4])
TEXT2 0, -i, nr + "," + name + "," + elevation + "," + height
NEXT i
&lt;/PRE&gt;

REQUEST Story_Info will work in 2D and parameter scripts.&lt;BR /&gt;
&lt;BR /&gt;
I just don't know a way that you can find the current story in the parameter script so you can save a parameter with the height for that story.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Thu, 01 Sep 2016 02:22:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Request-Current-Story-Height/m-p/225413#M7299</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2016-09-01T02:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Request - Current Story Height</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Request-Current-Story-Height/m-p/225414#M7300</link>
      <description>I got it!!!!&lt;BR /&gt;
&lt;BR /&gt;
The solution of my case was to use the "Story_Info" request (as you told me) and creating parameters (with arrays) using the request extracted data.&lt;BR /&gt;
After that I called  the "Home_story" request in order to get the proper "index" of current story.&lt;BR /&gt;
&lt;BR /&gt;
With a combination of this parameters I could find the current height.&lt;BR /&gt;
&lt;BR /&gt;
With GLOB_CSTORY_HEIGHT things were pretty much easier. Now the road is more winding.&lt;BR /&gt;
&lt;BR /&gt;
Thanks Barry for help.</description>
      <pubDate>Fri, 02 Sep 2016 00:45:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Request-Current-Story-Height/m-p/225414#M7300</guid>
      <dc:creator>MuriloNoleto</dc:creator>
      <dc:date>2016-09-02T00:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Request - Current Story Height</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Request-Current-Story-Height/m-p/225415#M7301</link>
      <description>im a little late to this but the elevator object is where i learned how to do all of that with the stories.  I use it in so many objects.</description>
      <pubDate>Sat, 03 Sep 2016 22:42:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Request-Current-Story-Height/m-p/225415#M7301</guid>
      <dc:creator>SenecaDesignLLC</dc:creator>
      <dc:date>2016-09-03T22:42:54Z</dc:date>
    </item>
  </channel>
</rss>

