<?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: Sensitize gdl object to story level in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Sensitize-gdl-object-to-story-level/m-p/623229#M6940</link>
    <description>&lt;P&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/45975"&gt;@MF BIM&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/22492"&gt;@AllanP&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you both very much for your response. However, I think I asked my question wrong. The question I am looking for an answer to is to create an infinite loop “values{2}”&lt;BR /&gt;i.e.&lt;BR /&gt;values{2} “stryname” , 1 , Ground Floor Plan,&lt;BR /&gt;2, First Floor Plan,&lt;BR /&gt;3, Second Floor Plan&lt;/P&gt;&lt;P&gt;I can write this manually, but depending on the size of the project, sometimes it can be a 10-storey project, sometimes a 20-storey project. Every time I add a new floor to the project, I want that stories to be added to the parameter automatically.&lt;/P&gt;</description>
    <pubDate>Mon, 19 Aug 2024 19:10:38 GMT</pubDate>
    <dc:creator>Bhtsz_pyd</dc:creator>
    <dc:date>2024-08-19T19:10:38Z</dc:date>
    <item>
      <title>Sensitize gdl object to story level</title>
      <link>https://community.graphisoft.com/t5/GDL/Sensitize-gdl-object-to-story-level/m-p/623063#M6935</link>
      <description>&lt;P&gt;Hello, I'm new to Gdl.&lt;BR /&gt;I have an object in my hand. I want to make a gdl object where I can choose which floor level this object will be at. However, I could not write a suitable code for this. There is the feature I want in the elevator object, but the gdl codes were too complicated for me. Which command should I use for this?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2024 22:31:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Sensitize-gdl-object-to-story-level/m-p/623063#M6935</guid>
      <dc:creator>Bhtsz_pyd</dc:creator>
      <dc:date>2024-08-17T22:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sensitize gdl object to story level</title>
      <link>https://community.graphisoft.com/t5/GDL/Sensitize-gdl-object-to-story-level/m-p/623079#M6936</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/128195"&gt;@Bhtsz_pyd&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You would need to REQUEST the &lt;SPAN&gt;STORY_INFO global variable. It holds info on all stories including the names, elevations and heights.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;n = REQUEST("STORY_INFO", expr, nStories,
            index1, name1, elev1, height1 [,
            index2, name2, ...])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2024 12:28:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Sensitize-gdl-object-to-story-level/m-p/623079#M6936</guid>
      <dc:creator>MF BIM</dc:creator>
      <dc:date>2024-08-18T12:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sensitize gdl object to story level</title>
      <link>https://community.graphisoft.com/t5/GDL/Sensitize-gdl-object-to-story-level/m-p/623085#M6937</link>
      <description>&lt;P&gt;Thank you MF BIM for your reply.&lt;BR /&gt;Obviously I tried that, but that's where your problem starts. What I want to do is to create a parameter that I can choose between. Ground Floor Plan, 1st Floor Plan, 2nd Floor Plan and link the position of the object to that floor. With the code you mentioned, I can get data such as story name or story height. I can also write it to the screen with the Text2 command. However, I cannot create a parameter that I can choose between them. Is there a sample video you can suggest about this? Creating a parameter similar to the “car position” parameter in the elevator object.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="maxresdefault.jpg" style="width: 720px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/70577iB8A9826009DE39AC/image-dimensions/720x405?v=v2" width="720" height="405" role="button" title="maxresdefault.jpg" alt="maxresdefault.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 11:51:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Sensitize-gdl-object-to-story-level/m-p/623085#M6937</guid>
      <dc:creator>Bhtsz_pyd</dc:creator>
      <dc:date>2024-08-20T11:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Sensitize gdl object to story level</title>
      <link>https://community.graphisoft.com/t5/GDL/Sensitize-gdl-object-to-story-level/m-p/623088#M6938</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the additional code you need is:&lt;/P&gt;
&lt;P&gt;n = REQUEST ("Story", "", index, story_name)&lt;BR /&gt;Returns in the index and story_name variables the index and the name of the current story.&lt;BR /&gt;n = REQUEST ("Home_story", "", index, story_name)&lt;BR /&gt;Returns in the index and story_name variables the index and the name of the home story.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you cannot physically move the object to a different story using the GDL code, but you can move where it appears in floor plan, and 3d Position using the code...&lt;/P&gt;
&lt;P&gt;i.e.&lt;/P&gt;
&lt;P&gt;n_current = REQUEST ("Story", "", index_current, story_name_current)&lt;/P&gt;
&lt;P&gt;n_home = REQUEST ("Home_story", "", index_home, story_name_home)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;nn_current = REQUEST ("STORY_INFO", index_current, total_stories, Index_Of_current, Name_Of_current, Elevation_Of_Current, Height_of_Current)&lt;/P&gt;
&lt;P&gt;nn_home = REQUEST ("STORY_INFO", index_home, total_stories, Index_Of_Home, Name_Of_Home, Elevation_Of_Home, Height_of_Home)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;nn_Ground = REQUEST ("STORY_INFO",0, total_stories, Index_Of_Ground, Name_Of_Ground, Elevation_Of_Ground, Height_of_Ground)&lt;/P&gt;
&lt;P&gt;nn_First= REQUEST ("STORY_INFO",1, total_stories, Index_Of_First, Name_Of_First, Elevation_Of_First, Height_of_First)&lt;/P&gt;
&lt;P&gt;nn_Second = REQUEST ("STORY_INFO",2, total_stories, Index_Of_Second, Name_Of_Second, Elevation_Of_Second, Height_of_Second)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and then you have the ability to calculate position/display based on designated story.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can then have a parameter that has the story you wish to display&lt;/P&gt;
&lt;P&gt;show_on_story&lt;/P&gt;
&lt;P&gt;i.e.&lt;/P&gt;
&lt;P&gt;values "show_on_story" "Ground Floor Plan", "First Floor Plan", "Second Floor Plan"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AllanP_0-1724036027332.png" style="width: 640px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/70581i14CA41934BE57C5E/image-dimensions/640x297?v=v2" width="640" height="297" role="button" title="AllanP_0-1724036027332.png" alt="AllanP_0-1724036027332.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;!2D Script&lt;/P&gt;
&lt;P&gt;n_current = REQUEST ("Story", "", index_current, story_name_current)&lt;/P&gt;
&lt;P&gt;if show_on_story = "Ground Floor Plan" and index_current = 0 then&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; !Show 2d content for ground floor option here&lt;/P&gt;
&lt;P&gt;endif&lt;/P&gt;
&lt;P&gt;if show_on_story = "First Floor Plan", and index_current = 1 then&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; !Show 2d content for First floor option here&lt;/P&gt;
&lt;P&gt;endif&lt;/P&gt;
&lt;P&gt;if show_on_story = "Second Floor Plan", and index_current= 2 then&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; !Show 2d content for Second floor option here&lt;/P&gt;
&lt;P&gt;endif&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 11:52:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Sensitize-gdl-object-to-story-level/m-p/623088#M6938</guid>
      <dc:creator>AllanP</dc:creator>
      <dc:date>2024-08-20T11:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sensitize gdl object to story level</title>
      <link>https://community.graphisoft.com/t5/GDL/Sensitize-gdl-object-to-story-level/m-p/623121#M6939</link>
      <description>&lt;P&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/128195"&gt;@Bhtsz_pyd&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to move the car then I would do it like this :&lt;/P&gt;&lt;P&gt;- Have an CarElevation parameter (length type)&lt;/P&gt;&lt;P&gt;- Have a CarPosition parameter (integer type)&lt;/P&gt;&lt;P&gt;- Request the story names and elevations after you requested the story info) and use &lt;FONT face="terminal,monaco" color="#FF0000"&gt;&lt;STRONG&gt;VALUES{2} &lt;/STRONG&gt;&lt;/FONT&gt;to display them as a drop down menu&lt;/P&gt;&lt;P&gt;- After selecting the CarPosition, calculate the sum of the elevations up to the chosen story&lt;/P&gt;&lt;P&gt;- Give that value to the CarElevation parameter to move the car&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you're new to GDL, you may need to go there to get some of the basics : &lt;A href="https://gdl.graphisoft.com/gdl-basics" target="_blank"&gt;https://gdl.graphisoft.com/gdl-basics&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 08:18:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Sensitize-gdl-object-to-story-level/m-p/623121#M6939</guid>
      <dc:creator>MF BIM</dc:creator>
      <dc:date>2024-08-19T08:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sensitize gdl object to story level</title>
      <link>https://community.graphisoft.com/t5/GDL/Sensitize-gdl-object-to-story-level/m-p/623229#M6940</link>
      <description>&lt;P&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/45975"&gt;@MF BIM&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/22492"&gt;@AllanP&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you both very much for your response. However, I think I asked my question wrong. The question I am looking for an answer to is to create an infinite loop “values{2}”&lt;BR /&gt;i.e.&lt;BR /&gt;values{2} “stryname” , 1 , Ground Floor Plan,&lt;BR /&gt;2, First Floor Plan,&lt;BR /&gt;3, Second Floor Plan&lt;/P&gt;&lt;P&gt;I can write this manually, but depending on the size of the project, sometimes it can be a 10-storey project, sometimes a 20-storey project. Every time I add a new floor to the project, I want that stories to be added to the parameter automatically.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 19:10:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Sensitize-gdl-object-to-story-level/m-p/623229#M6940</guid>
      <dc:creator>Bhtsz_pyd</dc:creator>
      <dc:date>2024-08-19T19:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sensitize gdl object to story level</title>
      <link>https://community.graphisoft.com/t5/GDL/Sensitize-gdl-object-to-story-level/m-p/623238#M6941</link>
      <description>&lt;P&gt;You could PUT all of the values into a parameter through a loop using&amp;nbsp;&lt;EM&gt;nStories&lt;/EM&gt; from your&amp;nbsp;&lt;EM&gt;Request&lt;/EM&gt;. From there you can use GET to insert it into your&amp;nbsp;&lt;EM&gt;VALUES{2}.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;A href="https://gdl.graphisoft.com/reference-guide/parameter-buffer-manipulation" target="_blank" rel="noopener"&gt;https://gdl.graphisoft.com/reference-guide/parameter-buffer-manipulation&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&lt;LI-CODE lang="markup"&gt;n = REQUEST ("Story_info", "", nr, ss)

FOR i = 1 TO nr
!nr = STR ("%.0m", ss [4 * (i - 1) + 1])
!name = ss [4 * (i - 1) + 2]
!elevation = STR ("%m", ss [4 * (i - 1) + 3])
!height = STR ("%m", ss [4 * (i - 1) + 4])&lt;/LI-CODE&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 20 Aug 2024 11:52:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Sensitize-gdl-object-to-story-level/m-p/623238#M6941</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2024-08-20T11:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sensitize gdl object to story level</title>
      <link>https://community.graphisoft.com/t5/GDL/Sensitize-gdl-object-to-story-level/m-p/623413#M6942</link>
      <description>&lt;P&gt;FYI&lt;/P&gt;
&lt;P&gt;Put only allows Numbers, so you cant use put on a story name that contains text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but you can use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;dim s_info[]
dim s_index[]
dim s_name[]
n = REQUEST("STORY_INFO", "", nrstories, s_info)

for j = 1 to nrstories
  s_index[j] = s_info[j*4-3]
  temp_name = s_info[j*4-2]

  !!!!-------Note: you can't have the same name description for 2 different numbers, so this bit here for unique story names------!!!!
  if j &amp;gt; 1 then
    for ii = 1 to j -1
      if s_name[ii] = s_info[j*4-2] then
        temp_name = s_info[j*4-2] +"Story="+str(s_index[j],1,0)
      endif
    next ii
  endif

  !!!!-------Note: you can't have the same name description for 2 different numbers, so this bit here for unique story names------!!!!
  s_name[j] = temp_name
next j

values{2} "stryname" s_index, s_name&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AllanP_0-1724198203826.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/70718i7001CB18DBA2EF78/image-size/large?v=v2&amp;amp;px=999" role="button" title="AllanP_0-1724198203826.png" alt="AllanP_0-1724198203826.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 21:24:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Sensitize-gdl-object-to-story-level/m-p/623413#M6942</guid>
      <dc:creator>AllanP</dc:creator>
      <dc:date>2024-08-26T21:24:43Z</dc:date>
    </item>
  </channel>
</rss>

