<?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: React to Object elevation change in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/React-to-Object-elevation-change/m-p/373331#M906</link>
    <description>&lt;P&gt;Thanks for the interest. I have taken this as far as I want for now. It was a test to establish the viability of adding the function to one of my other objects. The confusing part was the relationship of the Top &amp;amp; Bottom settings in the common UI. From what I can determine they are used to set SYMB_POS_Z (Offset from Home) and ZZYZX (Object height). The comments regarding having a saved state are correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have attached the GSM file, which was built in AC24. I doubt it has much use as an object on its own, but I am happy to share my findings. The object has minimal settings and for the purists, please forgive the capitalisation, that was how I learnt GDL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any comments or feedback on possible improvements are welcome.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Mar 2023 09:15:35 GMT</pubDate>
    <dc:creator>DGSketcher</dc:creator>
    <dc:date>2023-03-16T09:15:35Z</dc:date>
    <item>
      <title>React to Object elevation change</title>
      <link>https://community.graphisoft.com/t5/GDL/React-to-Object-elevation-change/m-p/373154#M901</link>
      <description>&lt;P&gt;I am looking for the correct equivalent of&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if GLOB_MODPAR_NAME = "SYMB_POS_Z" then... which doesn't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need an object to react e.g. to change height, if its [Offset from Home Story] is adjusted in the common interface. Currently the whole object moves and the required parameter updates don't happen.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 12:47:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/React-to-Object-elevation-change/m-p/373154#M901</guid>
      <dc:creator>DGSketcher</dc:creator>
      <dc:date>2023-03-14T12:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: React to Object elevation change</title>
      <link>https://community.graphisoft.com/t5/GDL/React-to-Object-elevation-change/m-p/373204#M902</link>
      <description>&lt;P&gt;I've written a few objects that I think do what you're after, but I'm not sure I fully get what you are trying to achieve. Could you post a sketch or something? Or if you want to pm me I could give you my email and we can chat. I've been helping a few others that way recently.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 19:56:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/React-to-Object-elevation-change/m-p/373204#M902</guid>
      <dc:creator>SenecaDesignLLC</dc:creator>
      <dc:date>2023-03-14T19:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: React to Object elevation change</title>
      <link>https://community.graphisoft.com/t5/GDL/React-to-Object-elevation-change/m-p/373212#M903</link>
      <description>&lt;P&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/5414"&gt;@SenecaDesignLLC&lt;/a&gt;&amp;nbsp;Thanks. The object I have needs to be linked to an upper story. There are three main parameters 1. The object height, 2. The linked story elevation, 3. an offset value from the link. I am happy with all those. What I am looking for is the correct process to update the height &amp;amp; offset if the home story offset is changed. As per my opening post if I change the &amp;nbsp;&lt;SPAN&gt;[Offset from Home Story] in the common interface the object and&amp;nbsp;SYMB_POS_Z change, but I can't see how to use that change with GLOB_MODPAR_NAME. I guess I am asking is there an AC parameter I am missing?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 22:58:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/React-to-Object-elevation-change/m-p/373212#M903</guid>
      <dc:creator>DGSketcher</dc:creator>
      <dc:date>2023-03-14T22:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: React to Object elevation change</title>
      <link>https://community.graphisoft.com/t5/GDL/React-to-Object-elevation-change/m-p/373281#M904</link>
      <description>&lt;P&gt;Could you put the SYMB_POS_Z in a parameter. Each time script is run it checks if this has changed and then action accordingly. After action update parameter again.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 01:03:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/React-to-Object-elevation-change/m-p/373281#M904</guid>
      <dc:creator>easyDoesIt</dc:creator>
      <dc:date>2023-03-16T01:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: React to Object elevation change</title>
      <link>https://community.graphisoft.com/t5/GDL/React-to-Object-elevation-change/m-p/373285#M905</link>
      <description>&lt;P&gt;You have;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;Object Height&lt;/EM&gt;, ZZYZX,&lt;BR /&gt;&lt;EM&gt;Linked Story Elevetion&lt;/EM&gt;, GLOB_HSTORY_ELEV,&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;and&amp;nbsp;&lt;EM&gt;Offset&lt;/EM&gt; from &lt;STRONG&gt;&lt;U&gt;selected story&lt;/U&gt;&lt;/STRONG&gt;, y?&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So your target is that when you change something such as your projects&amp;nbsp;&lt;EM&gt;Story Settings&lt;/EM&gt;, the&amp;nbsp;&lt;EM&gt;Offset&lt;/EM&gt; parameter of your object will automatically update?&lt;BR /&gt;&lt;BR /&gt;I do not believe you can use a global for&amp;nbsp;&lt;STRONG&gt;glob_modpar_name&lt;/STRONG&gt;... and even if there is some alternate way, you would need to save out the current state in order to reference any changes. This cannot be done via parameters and globals and most requests do not work is the parameter script, and it cannot be done via an i/o operation as those only occur on object generation / refresh.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ling.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 02:13:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/React-to-Object-elevation-change/m-p/373285#M905</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2023-03-16T02:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: React to Object elevation change</title>
      <link>https://community.graphisoft.com/t5/GDL/React-to-Object-elevation-change/m-p/373331#M906</link>
      <description>&lt;P&gt;Thanks for the interest. I have taken this as far as I want for now. It was a test to establish the viability of adding the function to one of my other objects. The confusing part was the relationship of the Top &amp;amp; Bottom settings in the common UI. From what I can determine they are used to set SYMB_POS_Z (Offset from Home) and ZZYZX (Object height). The comments regarding having a saved state are correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have attached the GSM file, which was built in AC24. I doubt it has much use as an object on its own, but I am happy to share my findings. The object has minimal settings and for the purists, please forgive the capitalisation, that was how I learnt GDL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any comments or feedback on possible improvements are welcome.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 09:15:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/React-to-Object-elevation-change/m-p/373331#M906</guid>
      <dc:creator>DGSketcher</dc:creator>
      <dc:date>2023-03-16T09:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: React to Object elevation change</title>
      <link>https://community.graphisoft.com/t5/GDL/React-to-Object-elevation-change/m-p/373352#M907</link>
      <description>&lt;P&gt;I am not sure you solved what you needed, anyway, here is a tutorial about a top-anchored lamp: &lt;A href="https://gdl.graphisoft.com/tips-and-tricks/how-to-create-a-hanging-lamp" target="_blank"&gt;https://gdl.graphisoft.com/tips-and-tricks/how-to-create-a-hanging-lamp&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Generally scripts are re-run when global variables/requests contained in them change. Unless you need to list these values, there should be no need to store them in parameters. If there is a need to know how much they changed, that sounds like a substitute for a missing information, these behaviours might always change in a future release.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 12:03:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/React-to-Object-elevation-change/m-p/373352#M907</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2023-03-16T12:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: React to Object elevation change</title>
      <link>https://community.graphisoft.com/t5/GDL/React-to-Object-elevation-change/m-p/373356#M908</link>
      <description>&lt;P&gt;Thanks for the link Peter, I will download the sample. I hadn't thought about the object in context of a lamp! The ultimate objective is to control a framed wall object as some of my clients like to change story heights and floor depths. The sample above was part of the learning curve as to how this might be managed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 12:29:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/React-to-Object-elevation-change/m-p/373356#M908</guid>
      <dc:creator>DGSketcher</dc:creator>
      <dc:date>2023-03-16T12:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: React to Object elevation change</title>
      <link>https://community.graphisoft.com/t5/GDL/React-to-Object-elevation-change/m-p/373400#M909</link>
      <description>&lt;P&gt;Not sure if it's relevant but the elevator object has a good example of getting all the stories and their info into some arrays.&lt;/P&gt;
&lt;P&gt;I use this so that I can specify which stories I want to see my objects on as well.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 16:58:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/React-to-Object-elevation-change/m-p/373400#M909</guid>
      <dc:creator>SenecaDesignLLC</dc:creator>
      <dc:date>2023-03-16T16:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: React to Object elevation change</title>
      <link>https://community.graphisoft.com/t5/GDL/React-to-Object-elevation-change/m-p/373421#M910</link>
      <description>&lt;P&gt;The elevator was a bit more relevant. &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I think I have used the relevant parts to gather the story data, but the final array management looked a bit more complex than I needed.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 21:55:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/React-to-Object-elevation-change/m-p/373421#M910</guid>
      <dc:creator>DGSketcher</dc:creator>
      <dc:date>2023-03-16T21:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: React to Object elevation change</title>
      <link>https://community.graphisoft.com/t5/GDL/React-to-Object-elevation-change/m-p/374539#M911</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;&lt;BR /&gt;Sorry I'm a bit late and I didn't see this one sooner to help a bit; but will leave some code for other people to use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From what I understand, you basically are trying to link an object's height to the next (or another) story, keeping an eye on an offset from said height (on top, based on story settings) and change the object's height if that changes and also take into account the objects home story offset. Correct?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that's the case, you can use this piece of code (can be used in master):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;!=================================================
!--- STORY INFO FOR LINKED HEIGHT-----
!=================================================
!++++++++++++++++
!CAN'T USE GLOB_HSTORY_HEIGHT BECAUSE OF PARAMETER SCRIPT INCOMPATIBILITY
!++++++++++++++++

rrr=REQUEST ("Home_story", "", homeIndex, homeStoryName)
!--- Passing homeIndex value to next REQ
rrr=REQUEST ("Story_info", homeIndex, nStories, storyIndex, storyName, storyElev, storyHeight)

IF heightLink THEN
	sizeZ = storyHeight + heightOffset - GLOB_ELEVATION
	ZZYZX = sizeZ
	PARAMETERS ZZYZX = ZZYZX
	LOCK "ZZYZX"
ELSE
	sizeZ = ZZYZX
	PARAMETERS sizeZ = sizeZ
ENDIF&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;where "heightLink" is a boolean, "sizeZ" is a hidden length parameter that is used for the 3D block height, and "heightOffset" is the parameter you can control with a hotspot. This is to link it to the next story; if you need another one from the list, you will need the array with the story info to manage that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps.&lt;/P&gt;
&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 23:28:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/React-to-Object-elevation-change/m-p/374539#M911</guid>
      <dc:creator>sinceV6</dc:creator>
      <dc:date>2023-03-27T23:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: React to Object elevation change</title>
      <link>https://community.graphisoft.com/t5/GDL/React-to-Object-elevation-change/m-p/374591#M912</link>
      <description>&lt;P&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/9767"&gt;@sinceV6&lt;/a&gt;&amp;nbsp;No need to apologise, and thank you for your input. That would be a simplification of what I am considering e.g. a multi-storey object, but it is also seriously tempting as the number of multi-storey instances in the final application is quite limited.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 08:15:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/React-to-Object-elevation-change/m-p/374591#M912</guid>
      <dc:creator>DGSketcher</dc:creator>
      <dc:date>2023-03-28T08:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: React to Object elevation change</title>
      <link>https://community.graphisoft.com/t5/GDL/React-to-Object-elevation-change/m-p/374625#M913</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;The code is used in a library part as an option to link it to the next storey, but yeah... it is quite simple and basically just for that: next level.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a multi-storey object, an elevator, that behaves &lt;EM&gt;in the same way&lt;/EM&gt;, but with the other things for it to work with that goal. The logic is quite the same though. You just need the extra info about storeys for height and display automation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 14:59:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/React-to-Object-elevation-change/m-p/374625#M913</guid>
      <dc:creator>sinceV6</dc:creator>
      <dc:date>2023-03-28T14:59:51Z</dc:date>
    </item>
  </channel>
</rss>

