<?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: Master_GDL usage for user global variables in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Master-GDL-usage-for-user-global-variables/m-p/235634#M9081</link>
    <description>There were changes in ARCHICAD 19 to how GLOB_USER parameters work:&lt;BR /&gt;
&lt;BR /&gt;
Check Section IV. User Globals:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://gdl.graphisoft.com/wp-content/uploads/GDL-changes-in-ArchiCAD-19-v1.1.pdf" target="_blank"&gt;&lt;LINK_TEXT text="http://gdl.graphisoft.com/wp-content/up ... 9-v1.1.pdf"&gt;http://gdl.graphisoft.com/wp-content/uploads/GDL-changes-in-ArchiCAD-19-v1.1.pdf&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
It also states that: &lt;BR /&gt;

&lt;BLOCKQUOTE&gt;The use of user globals for data transfer between an element and its macros is obsolete, slow to interpret, and hard to debug. The best practice is:&lt;BR /&gt;
o For data transfer from the caller element to the macro, simply add the parameters to the macro call&lt;BR /&gt;
o For data transfer from the macro to the caller element, add the returned parameters to the macro call&lt;BR /&gt;
o To centrally set a value for all parts of a library:&lt;BR /&gt;
     Use the Library Master object to set fixed values and value lists for all of your objects&lt;BR /&gt;
     Use the Library Globals set in Model View Options to have editable parameters affecting all Library parts using that Model View.&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Thu, 19 Nov 2015 14:35:24 GMT</pubDate>
    <dc:creator>Laszlo Nagy</dc:creator>
    <dc:date>2015-11-19T14:35:24Z</dc:date>
    <item>
      <title>Master_GDL usage for user global variables</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Master-GDL-usage-for-user-global-variables/m-p/235632#M9079</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I'm trying to use Master_GDL script for the first time. My goal is to set a value for a user global variable in the master script, and have subsequent scripts run during 3d window generation and use the value. &lt;BR /&gt;
&lt;BR /&gt;
My first effort is not working, and I suspect I'm missing something obvious.&lt;BR /&gt;
&lt;BR /&gt;
Script:&lt;BR /&gt;
- created with gel editor&lt;BR /&gt;
- name is "MASTER_GLD"&lt;BR /&gt;
- object subtype set to "LIBRARY MASTER"&lt;BR /&gt;
- variable is set in master script (only script space available)&lt;BR /&gt;
- "GLOB_USER_1=5" is code used&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
But GLOB_USER_1 evaluates to 0 when accessed in another script.&lt;BR /&gt;
What's wrong?&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 May 2023 09:40:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Master-GDL-usage-for-user-global-variables/m-p/235632#M9079</guid>
      <dc:creator>Robert Nichols</dc:creator>
      <dc:date>2023-05-24T09:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Master_GDL usage for user global variables</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Master-GDL-usage-for-user-global-variables/m-p/235633#M9080</link>
      <description>Two things I can think of.&lt;BR /&gt;
&lt;BR /&gt;
If you have just created this Master_GDL object then you need to reload your library to start it working.&lt;BR /&gt;
It is only read when you start Archicad or reload the library.&lt;BR /&gt;
&lt;BR /&gt;
The second is make sure you don't use quotes around GLOB_USER_1=5 (I am sure that was just for your example).&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Thu, 19 Nov 2015 02:15:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Master-GDL-usage-for-user-global-variables/m-p/235633#M9080</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2015-11-19T02:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Master_GDL usage for user global variables</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Master-GDL-usage-for-user-global-variables/m-p/235634#M9081</link>
      <description>There were changes in ARCHICAD 19 to how GLOB_USER parameters work:&lt;BR /&gt;
&lt;BR /&gt;
Check Section IV. User Globals:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://gdl.graphisoft.com/wp-content/uploads/GDL-changes-in-ArchiCAD-19-v1.1.pdf" target="_blank"&gt;&lt;LINK_TEXT text="http://gdl.graphisoft.com/wp-content/up ... 9-v1.1.pdf"&gt;http://gdl.graphisoft.com/wp-content/uploads/GDL-changes-in-ArchiCAD-19-v1.1.pdf&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
It also states that: &lt;BR /&gt;

&lt;BLOCKQUOTE&gt;The use of user globals for data transfer between an element and its macros is obsolete, slow to interpret, and hard to debug. The best practice is:&lt;BR /&gt;
o For data transfer from the caller element to the macro, simply add the parameters to the macro call&lt;BR /&gt;
o For data transfer from the macro to the caller element, add the returned parameters to the macro call&lt;BR /&gt;
o To centrally set a value for all parts of a library:&lt;BR /&gt;
     Use the Library Master object to set fixed values and value lists for all of your objects&lt;BR /&gt;
     Use the Library Globals set in Model View Options to have editable parameters affecting all Library parts using that Model View.&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 19 Nov 2015 14:35:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Master-GDL-usage-for-user-global-variables/m-p/235634#M9081</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2015-11-19T14:35:24Z</dc:date>
    </item>
  </channel>
</rss>

