<?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: Using global variables in parameter scripts in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Using-global-variables-in-parameter-scripts/m-p/635290#M7066</link>
    <description>&lt;P&gt;Some you can and some you can't.&lt;/P&gt;
&lt;P&gt;In the GDL manual you will be told which ones can't.&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="BarryKelly_0-1728607068189.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/77973iE0EA1153B6308EE8/image-size/large?v=v2&amp;amp;px=999" role="button" title="BarryKelly_0-1728607068189.png" alt="BarryKelly_0-1728607068189.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://gdl.graphisoft.com/reference-guide/global-variables" target="_blank"&gt;https://gdl.graphisoft.com/reference-guide/global-variables&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Oct 2024 00:38:45 GMT</pubDate>
    <dc:creator>Barry Kelly</dc:creator>
    <dc:date>2024-10-11T00:38:45Z</dc:date>
    <item>
      <title>Using global variables in parameter scripts</title>
      <link>https://community.graphisoft.com/t5/GDL/Using-global-variables-in-parameter-scripts/m-p/635279#M7065</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Is there any way to use global variables in the parameter script?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 19:36:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Using-global-variables-in-parameter-scripts/m-p/635279#M7065</guid>
      <dc:creator>Bhtsz_pyd</dc:creator>
      <dc:date>2024-10-10T19:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using global variables in parameter scripts</title>
      <link>https://community.graphisoft.com/t5/GDL/Using-global-variables-in-parameter-scripts/m-p/635290#M7066</link>
      <description>&lt;P&gt;Some you can and some you can't.&lt;/P&gt;
&lt;P&gt;In the GDL manual you will be told which ones can't.&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="BarryKelly_0-1728607068189.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/77973iE0EA1153B6308EE8/image-size/large?v=v2&amp;amp;px=999" role="button" title="BarryKelly_0-1728607068189.png" alt="BarryKelly_0-1728607068189.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://gdl.graphisoft.com/reference-guide/global-variables" target="_blank"&gt;https://gdl.graphisoft.com/reference-guide/global-variables&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 00:38:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Using-global-variables-in-parameter-scripts/m-p/635290#M7066</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2024-10-11T00:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using global variables in parameter scripts</title>
      <link>https://community.graphisoft.com/t5/GDL/Using-global-variables-in-parameter-scripts/m-p/635364#M7071</link>
      <description>&lt;P&gt;Thanks Barry. But the variable I want to use does not work in the parameter script. My question is actually I wonder if there is a way to use variables that do not work in the parameter script. The script I want to write is "parameters ac_toplevel= zzyzx + GLOB_HSTORY_ELEV"&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 09:55:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Using-global-variables-in-parameter-scripts/m-p/635364#M7071</guid>
      <dc:creator>Bhtsz_pyd</dc:creator>
      <dc:date>2024-10-11T09:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using global variables in parameter scripts</title>
      <link>https://community.graphisoft.com/t5/GDL/Using-global-variables-in-parameter-scripts/m-p/635367#M7072</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;you can write your example in the master script&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 10:19:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Using-global-variables-in-parameter-scripts/m-p/635367#M7072</guid>
      <dc:creator>Yves</dc:creator>
      <dc:date>2024-10-11T10:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using global variables in parameter scripts</title>
      <link>https://community.graphisoft.com/t5/GDL/Using-global-variables-in-parameter-scripts/m-p/635371#M7073</link>
      <description>&lt;P&gt;GLOB_HSTORY_ELEV will return "0" in the parameter script (and the mater script).&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="BarryKelly_0-1728642341373.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/78000i66C5F39C82F3BB34/image-size/large?v=v2&amp;amp;px=999" role="button" title="BarryKelly_0-1728642341373.png" alt="BarryKelly_0-1728642341373.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Only in the 2D or 3D script will it have a value.&lt;/P&gt;
&lt;P&gt;So you can use in in 2D or 3D but you can not set another parameter based on its value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also don't just type...&lt;/P&gt;
&lt;P&gt;parameters ac_toplevel= zzyzx + GLOB_HSTORY_ELEV&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should type ...&lt;/P&gt;
&lt;P&gt;ac_toplevel= zzyzx + GLOB_HSTORY_ELEV&lt;/P&gt;
&lt;P&gt;parameters ac_toplevel= ac_toplevel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This set the parameter value used in the scripts and also set the parameter value in the parameter list.&lt;/P&gt;
&lt;P&gt;But even this won't work in this instance because GLOB_HSTORY_ELEV will always be 0 in the parameter script.&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>Fri, 11 Oct 2024 10:30:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Using-global-variables-in-parameter-scripts/m-p/635371#M7073</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2024-10-11T10:30:07Z</dc:date>
    </item>
  </channel>
</rss>

