<?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 how to link parameters to local variables in a label object in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/how-to-link-parameters-to-local-variables-in-a-label-object/m-p/365140#M1651</link>
    <description>&lt;P&gt;&lt;SPAN&gt;While making the label for slab complex, I found that the number of skins added to the complex was not automatically reflected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="제목 없음-1.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/32547iB022558E0B3E78AA/image-size/large?v=v2&amp;amp;px=999" role="button" title="제목 없음-1.png" alt="제목 없음-1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;after modifying the complex, Parameters reflecting the number of skins in the label are not reflected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="제목 없음-2.png" style="width: 840px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/32548i376445CF311ECC2A/image-size/large?v=v2&amp;amp;px=999" role="button" title="제목 없음-2.png" alt="제목 없음-2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried to update this numText parameter to the current state by itself, but my ability was not enough.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It is updated only when I enter the settings and do some changes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&lt;P&gt;&amp;lt;PARAMETER&amp;gt;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="soo_0-1671084110633.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/32549iC3B1266D99D5AA99/image-size/medium?v=v2&amp;amp;px=400" role="button" title="soo_0-1671084110633.png" alt="soo_0-1671084110633.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&lt;P&gt;&amp;lt;MASTER&amp;gt;&lt;/P&gt;&lt;P&gt;if GLOB_ELEM_TYPE = WALL_TYPE then&lt;BR /&gt;THICKNESS = WALL_THICKNESS&lt;BR /&gt;SKINS_NUMBER = WALL_SKINS_NUMBER&lt;BR /&gt;endif&lt;/P&gt;&lt;P&gt;if GLOB_ELEM_TYPE = SLAB_TYPE then&lt;BR /&gt;THICKNESS = SLAB_THICKNESS&lt;BR /&gt;SKINS_NUMBER = SLAB_SKINS_NUMBER&lt;BR /&gt;endif&lt;/P&gt;&lt;P&gt;if GLOB_ELEM_TYPE = ROOF_TYPE then&lt;BR /&gt;THICKNESS = ROOF_THICKNESS&lt;BR /&gt;SKINS_NUMBER = ROOF_SKINS_NUMBER&lt;BR /&gt;endif&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&lt;P&gt;&amp;lt;PARAMETER&amp;gt;&lt;/P&gt;&lt;P&gt;if LabelType = LabelTypes[1] then&lt;BR /&gt;parameters numHotspot = SKINS_NUMBER + numTextAdd&lt;BR /&gt;parameters numText = SKINS_NUMBER + numTextAdd&lt;BR /&gt;endif&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm happy to know how to solve this issue. Thank you.&lt;/P&gt;</description>
    <pubDate>Thu, 15 Dec 2022 06:03:53 GMT</pubDate>
    <dc:creator>soo</dc:creator>
    <dc:date>2022-12-15T06:03:53Z</dc:date>
    <item>
      <title>how to link parameters to local variables in a label object</title>
      <link>https://community.graphisoft.com/t5/GDL/how-to-link-parameters-to-local-variables-in-a-label-object/m-p/365140#M1651</link>
      <description>&lt;P&gt;&lt;SPAN&gt;While making the label for slab complex, I found that the number of skins added to the complex was not automatically reflected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="제목 없음-1.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/32547iB022558E0B3E78AA/image-size/large?v=v2&amp;amp;px=999" role="button" title="제목 없음-1.png" alt="제목 없음-1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;after modifying the complex, Parameters reflecting the number of skins in the label are not reflected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="제목 없음-2.png" style="width: 840px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/32548i376445CF311ECC2A/image-size/large?v=v2&amp;amp;px=999" role="button" title="제목 없음-2.png" alt="제목 없음-2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried to update this numText parameter to the current state by itself, but my ability was not enough.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It is updated only when I enter the settings and do some changes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&lt;P&gt;&amp;lt;PARAMETER&amp;gt;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="soo_0-1671084110633.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/32549iC3B1266D99D5AA99/image-size/medium?v=v2&amp;amp;px=400" role="button" title="soo_0-1671084110633.png" alt="soo_0-1671084110633.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&lt;P&gt;&amp;lt;MASTER&amp;gt;&lt;/P&gt;&lt;P&gt;if GLOB_ELEM_TYPE = WALL_TYPE then&lt;BR /&gt;THICKNESS = WALL_THICKNESS&lt;BR /&gt;SKINS_NUMBER = WALL_SKINS_NUMBER&lt;BR /&gt;endif&lt;/P&gt;&lt;P&gt;if GLOB_ELEM_TYPE = SLAB_TYPE then&lt;BR /&gt;THICKNESS = SLAB_THICKNESS&lt;BR /&gt;SKINS_NUMBER = SLAB_SKINS_NUMBER&lt;BR /&gt;endif&lt;/P&gt;&lt;P&gt;if GLOB_ELEM_TYPE = ROOF_TYPE then&lt;BR /&gt;THICKNESS = ROOF_THICKNESS&lt;BR /&gt;SKINS_NUMBER = ROOF_SKINS_NUMBER&lt;BR /&gt;endif&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&lt;P&gt;&amp;lt;PARAMETER&amp;gt;&lt;/P&gt;&lt;P&gt;if LabelType = LabelTypes[1] then&lt;BR /&gt;parameters numHotspot = SKINS_NUMBER + numTextAdd&lt;BR /&gt;parameters numText = SKINS_NUMBER + numTextAdd&lt;BR /&gt;endif&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm happy to know how to solve this issue. Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 06:03:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/how-to-link-parameters-to-local-variables-in-a-label-object/m-p/365140#M1651</guid>
      <dc:creator>soo</dc:creator>
      <dc:date>2022-12-15T06:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to link parameters to local variables in a label object</title>
      <link>https://community.graphisoft.com/t5/GDL/how-to-link-parameters-to-local-variables-in-a-label-object/m-p/365142#M1652</link>
      <description>&lt;P&gt;Try this.&lt;/P&gt;
&lt;P&gt;You may just need to set the value of the parameter to be used in your scripts as well as setting the parameter value you see in the PARAMETERS list.&lt;/P&gt;
&lt;P&gt;You should never just use 'parameters numHotspot = SKINS_NUMBER + numTextAdd' as that changes the value in the list but not that actual value of the parameter used in the script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;if LabelType = LabelTypes[1] then
    numHotspot = SKINS_NUMBER + numTextAdd
    parameters numHotspot = numHotspot

    numText = SKINS_NUMBER + numTextAdd
    parameters numText = numText
endif&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 06:21:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/how-to-link-parameters-to-local-variables-in-a-label-object/m-p/365142#M1652</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2022-12-15T06:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to link parameters to local variables in a label object</title>
      <link>https://community.graphisoft.com/t5/GDL/how-to-link-parameters-to-local-variables-in-a-label-object/m-p/365566#M1653</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To understand it better, think about variables and parameters as a different thing.&lt;/P&gt;
&lt;P&gt;In the script you don't access the parameters, only their copies as variables. They get initialized with the parameters' values, but aren't kept in sync afterwards. After a variable is changed, the parameter value can't be accessed afterwards. Changing a variable doesn't change the parameter, changing a parameter with a PARAMETERS command doesn't change the variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 11:19:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/how-to-link-parameters-to-local-variables-in-a-label-object/m-p/365566#M1653</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2022-12-20T11:19:39Z</dc:date>
    </item>
  </channel>
</rss>

