<?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: Macro - General Question in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Macro-General-Question/m-p/288673#M3510</link>
    <description>&lt;BLOCKQUOTE&gt;GDL wrote:&lt;BR /&gt;
Hi GDL Experts,&lt;BR /&gt;
&lt;BR /&gt;
I am creating a Master GDL Object that calls in various Macro Objects to place them in the final assembly. Each Macro Object has various Parameters.&lt;BR /&gt;
&lt;BR /&gt;
In the Master GDL Object, should every Parameter of the Macro Objects be listed out? For instance if each Macro Object has 15 parameters, then the master could easily have a lot of Parameters. &lt;BR /&gt;
&lt;BR /&gt;
Many thanks in advance!
&lt;/BLOCKQUOTE&gt;

Master GDL Object is executing only when you are loading the library. So it's good for setting global variables (GLOB_USER) and fills and surfaces.&lt;BR /&gt;
What the reason, that you want to call Master GDL from another macros?&lt;BR /&gt;
&lt;BR /&gt;
During macro calls not necessary that calling object would contain parameters of called macro. It's important only if you want that editable hotspots from called macro would work correctly.</description>
    <pubDate>Thu, 29 Jul 2021 14:24:31 GMT</pubDate>
    <dc:creator>Podolsky</dc:creator>
    <dc:date>2021-07-29T14:24:31Z</dc:date>
    <item>
      <title>Macro - General Question</title>
      <link>https://community.graphisoft.com/t5/GDL/Macro-General-Question/m-p/288672#M3509</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi GDL Experts,&lt;BR /&gt;&lt;BR /&gt;I am creating a Master GDL Object that calls in various Macro Objects to place them in the final assembly. Each Macro Object has various Parameters.&lt;BR /&gt;&lt;BR /&gt;In the Master GDL Object, should every Parameter of the Macro Objects be listed out? For instance if each Macro Object has 15 parameters, then the master could easily have a lot of Parameters. &lt;BR /&gt;&lt;BR /&gt;Many thanks in advance!&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Sep 2021 06:55:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Macro-General-Question/m-p/288672#M3509</guid>
      <dc:creator>GDL Enthusiast</dc:creator>
      <dc:date>2021-09-14T06:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Macro - General Question</title>
      <link>https://community.graphisoft.com/t5/GDL/Macro-General-Question/m-p/288673#M3510</link>
      <description>&lt;BLOCKQUOTE&gt;GDL wrote:&lt;BR /&gt;
Hi GDL Experts,&lt;BR /&gt;
&lt;BR /&gt;
I am creating a Master GDL Object that calls in various Macro Objects to place them in the final assembly. Each Macro Object has various Parameters.&lt;BR /&gt;
&lt;BR /&gt;
In the Master GDL Object, should every Parameter of the Macro Objects be listed out? For instance if each Macro Object has 15 parameters, then the master could easily have a lot of Parameters. &lt;BR /&gt;
&lt;BR /&gt;
Many thanks in advance!
&lt;/BLOCKQUOTE&gt;

Master GDL Object is executing only when you are loading the library. So it's good for setting global variables (GLOB_USER) and fills and surfaces.&lt;BR /&gt;
What the reason, that you want to call Master GDL from another macros?&lt;BR /&gt;
&lt;BR /&gt;
During macro calls not necessary that calling object would contain parameters of called macro. It's important only if you want that editable hotspots from called macro would work correctly.</description>
      <pubDate>Thu, 29 Jul 2021 14:24:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Macro-General-Question/m-p/288673#M3510</guid>
      <dc:creator>Podolsky</dc:creator>
      <dc:date>2021-07-29T14:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Macro - General Question</title>
      <link>https://community.graphisoft.com/t5/GDL/Macro-General-Question/m-p/288674#M3511</link>
      <description>&lt;BLOCKQUOTE&gt;GDL wrote:&lt;BR /&gt;
I am creating a Master GDL Object that calls in various Macro Objects to place them in the final assembly. 
&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
When you say Master GDL object, do you just mean a parent GDL object?&lt;BR /&gt;
&lt;BR /&gt;
A 'Master_GDL' object is a special object (or objects) that are used at the time the library is loaded to set certain values and attributes as Poldolsky mentioned.&lt;BR /&gt;
&lt;BR /&gt;
The parent object does not need the same parameters as the macro unless you are returning them to the parent or calculating and setting them in the called (child) macro.&lt;BR /&gt;
See this post discussing that ... &lt;A href="https://archicad-talk.graphisoft.com/viewtopic.php?f=49&amp;amp;t=74006&amp;amp;start=20#p330620" target="_blank"&gt;&lt;LINK_TEXT text="viewtopic.php?f=49&amp;amp;t=74006&amp;amp;start=20#p330620"&gt;https://archicad-talk.graphisoft.com/viewtopic.php?f=49&amp;amp;t=74006&amp;amp;start=20#p330620&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
But usually they would have the same parameters as you would probably be passing on parameter values from the parent to the child when you CALL it.&lt;BR /&gt;
It all depends on what you child macro is doing.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Fri, 30 Jul 2021 00:49:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Macro-General-Question/m-p/288674#M3511</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2021-07-30T00:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Macro - General Question</title>
      <link>https://community.graphisoft.com/t5/GDL/Macro-General-Question/m-p/288675#M3512</link>
      <description>Hi Poldolsky and Barry,&lt;BR /&gt;
&lt;BR /&gt;
Thank you, that makes sense and I really appreciate your help! I had found that if I needed the hotspots to work that they only came through when the parameters were listed in the parent object (thank you for the definitions). &lt;BR /&gt;
&lt;BR /&gt;
Best regards!</description>
      <pubDate>Fri, 30 Jul 2021 12:01:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Macro-General-Question/m-p/288675#M3512</guid>
      <dc:creator>GDL Enthusiast</dc:creator>
      <dc:date>2021-07-30T12:01:08Z</dc:date>
    </item>
  </channel>
</rss>

