<?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: Label object isn't update automatically in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Label-object-isn-t-update-automatically/m-p/357421#M2185</link>
    <description>&lt;P&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/34257"&gt;@soo&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;Sorry if you thought your posts kept deleting, it was because you had already posted in the Design forum (the wrong forum) so I moved that to the Documentation forum and deleted the other posts you made here in the Developers forum as they were the same (we don't want duplicates).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see know you are asking about a GDL object you have created (that was not apparent before in your other posts).&lt;/P&gt;
&lt;P&gt;So I have left this post here in the Developer's forum and removed the others.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Sep 2022 02:19:18 GMT</pubDate>
    <dc:creator>Barry Kelly</dc:creator>
    <dc:date>2022-09-29T02:19:18Z</dc:date>
    <item>
      <title>Label object isn't update automatically</title>
      <link>https://community.graphisoft.com/t5/GDL/Label-object-isn-t-update-automatically/m-p/357417#M2184</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi.. I'm GDL newbie.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I made a skin list label for drawing.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;but there is a problem that it's not automatically updated.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After I edit a&amp;nbsp;&lt;SPAN&gt;composite skins,&amp;nbsp;the Skin list label isn't updated.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So I need to click another options for refreshing the object.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I really need to know How to automatically update the skin list label.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I'm happy to know any tips or advise. thank you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;this is how i called a composite skin's informations.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[MASTER]&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;type_Wall = 5
type_Slab = 7
type_Roof = 8

numFinish = 1

if GLOB_ELEM_TYPE = type_Wall then
numFinish = WALL_SKINS_NUMBER

for i = 1 to numFinish

parameters stFinish[i] = WALL_SKINS_BMAT_NAMES[i][1]
parameters thkFinish[i] = WALL_SKINS_PARAMS[i][2]

next i
endif

if GLOB_ELEM_TYPE = type_Slab then
numFinish = SLAB_SKINS_NUMBER

for i = 1 to numFinish

parameters stFinish[i] = SLAB_SKINS_BMAT_NAMES[i][1]
parameters thkFinish[i] = SLAB_SKINS_PARAMS[i][2]

next i
endif

if GLOB_ELEM_TYPE = type_Roof then
numFinish = ROOF_SKINS_NUMBER

for i = 1 to numFinish

parameters stFinish[i] = ROOF_SKINS_BMAT_NAMES[i][1]
parameters thkFinish[i] = ROOF_SKINS_PARAMS[i][2]

next i
endif&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[2D]&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;stContent = "THK" + str("%.1mm", thkFinish[selectTmp])  + stFinish[selectTmp] &lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 01 Oct 2022 13:25:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Label-object-isn-t-update-automatically/m-p/357417#M2184</guid>
      <dc:creator>soo</dc:creator>
      <dc:date>2022-10-01T13:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Label object isn't update automatically</title>
      <link>https://community.graphisoft.com/t5/GDL/Label-object-isn-t-update-automatically/m-p/357421#M2185</link>
      <description>&lt;P&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/34257"&gt;@soo&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;Sorry if you thought your posts kept deleting, it was because you had already posted in the Design forum (the wrong forum) so I moved that to the Documentation forum and deleted the other posts you made here in the Developers forum as they were the same (we don't want duplicates).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see know you are asking about a GDL object you have created (that was not apparent before in your other posts).&lt;/P&gt;
&lt;P&gt;So I have left this post here in the Developer's forum and removed the others.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 02:19:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Label-object-isn-t-update-automatically/m-p/357421#M2185</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2022-09-29T02:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Label object isn't update automatically</title>
      <link>https://community.graphisoft.com/t5/GDL/Label-object-isn-t-update-automatically/m-p/357424#M2186</link>
      <description>&lt;P&gt;thank you barry. I thought my post kept deleting&amp;nbsp;&lt;SPAN&gt;because I shared the attached file.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 02:31:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Label-object-isn-t-update-automatically/m-p/357424#M2186</guid>
      <dc:creator>soo</dc:creator>
      <dc:date>2022-09-29T02:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Label object isn't update automatically</title>
      <link>https://community.graphisoft.com/t5/GDL/Label-object-isn-t-update-automatically/m-p/357428#M2187</link>
      <description>&lt;P&gt;The issue is you are only populating a parameter with the value therefore the GDL object has to go through the step of running the parameter script. The master script, 2D script and 3D scripts are refreshed when you refresh the screen (pan or zoom) but the parameters are only updated when the tool is activated by opening the settings of moving a hotspot.&lt;/P&gt;&lt;P&gt;The solution is to populate the parameter as you are doing BUT ALSO populate what is called a "local variable" as a replica of the parameter. Then use this local variable in your 2D script rather than the parameter it is replicating.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So where you have:&lt;/P&gt;&lt;P&gt;for i = 1 to numFinish&lt;/P&gt;&lt;P&gt;parameters stFinish[i] = SLAB_SKINS_BMAT_NAMES[i][1]&lt;BR /&gt;parameters thkFinish[i] = SLAB_SKINS_PARAMS[i][2]&lt;/P&gt;&lt;P&gt;next i&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you should have:&lt;/P&gt;&lt;P&gt;dim _stFinish[]&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; !!declaring the mimic local variable&lt;/P&gt;&lt;P&gt;dim _thkFinish[]&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;!!declaring the mimic local variable&lt;/P&gt;&lt;P&gt;for i = 1 to numFinish&amp;nbsp; &amp;nbsp; &amp;nbsp;!!populating the mimic local variable&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _stFinish[i] = SLAB_SKINS_BMAT_NAMES[i][1]&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _thkFinish[i] = SLAB_SKINS_PARAMS[i][2]&lt;/P&gt;&lt;P&gt;next i&lt;/P&gt;&lt;P&gt;!!now apply the local variable to the parameter&lt;/P&gt;&lt;P&gt;stFinish =&amp;nbsp;_stFinish&lt;/P&gt;&lt;P&gt;thkFinish =&amp;nbsp;_thkFinish&lt;/P&gt;&lt;P&gt;parameters&amp;nbsp;stFinish = stFinish,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;thkFinish =&amp;nbsp;_thkFinish&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In summary what you now have is both your parameter and a local variable storing the information. Use the local variable in your 2D script, instead of the parameter, for a dynamic response.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 02:56:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Label-object-isn-t-update-automatically/m-p/357428#M2187</guid>
      <dc:creator>Kristian Bursell</dc:creator>
      <dc:date>2022-09-29T02:56:47Z</dc:date>
    </item>
  </channel>
</rss>

