<?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 basics - share info in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Macro-basics-share-info/m-p/260693#M8244</link>
    <description>The reason is the object (the macro) is a whole object...and the "real" clickable object is just changing the parameters to suit the needs...and maybe it is used in more objects (but it is not possible automatically to find the all objects using it)&lt;BR /&gt;
Another example of such objects are all doors (almost) - they "only" call the "superdoor" object with some parameters (and soome are not user accesible normally) eg: the single door...double...sidelights etc.&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Piotr</description>
    <pubDate>Fri, 19 Feb 2016 19:42:46 GMT</pubDate>
    <dc:creator>Piotr Dobrowolski</dc:creator>
    <dc:date>2016-02-19T19:42:46Z</dc:date>
    <item>
      <title>Macro basics - share info</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Macro-basics-share-info/m-p/260689#M8240</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi everyone, &lt;BR /&gt;
&lt;BR /&gt;
I'm looking for information on how to work with macros:&lt;BR /&gt;
- where are the existing one stored&lt;BR /&gt;
- where to save new ones&lt;BR /&gt;
- how to open and edit existing ones&lt;BR /&gt;
- list of parameters that could be used from a macro&lt;BR /&gt;
&lt;BR /&gt;
Unfortunately I can't find any information on that, only info is to call a macro and thats it...&lt;BR /&gt;
&lt;BR /&gt;
Please share links on how to deal with macros &lt;BR /&gt;
&lt;BR /&gt;
PS. For example I need to modify the basic slab opening object which for some reason is one big macro named "slabOpeningSymbol_m" and called in the Master Script:
&lt;PRE&gt;EPS = 0.0001

if GLOB_SCRIPT_TYPE &amp;lt;&amp;gt; 7 &amp;amp; GLOB_SCRIPT_TYPE &amp;lt;&amp;gt; 8 then
	call "slabOpeningSymbol_m" parameters all iSymbolType		= 1
endif&lt;/PRE&gt;

and thats it, no more code in the object.&lt;BR /&gt;
So how do I do that, where is the code for the opening ?&lt;BR /&gt;
&lt;BR /&gt;
Thanks !&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 18 Feb 2016 09:08:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Macro-basics-share-info/m-p/260689#M8240</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-18T09:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Macro basics - share info</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Macro-basics-share-info/m-p/260690#M8241</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
The macros are stored "somewhere" in the loaded library - hard to determine, depends on the library designer.&lt;BR /&gt;
&lt;BR /&gt;
So to open: either use "open by subtype" command located in the GDL edit toolbar (activate it if not activated in Your UI) &lt;BR /&gt;
but If You have a script calling such macro - just select its name and hit "CTRL+SHIFT+O"&lt;BR /&gt;
&lt;BR /&gt;
there are no parameters restrictions...the parameters can be transered like after end command for example or via request.&lt;BR /&gt;
&lt;BR /&gt;
All documented (some better some worse in GDL documentation)&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Piotr Dobrowolski</description>
      <pubDate>Thu, 18 Feb 2016 11:01:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Macro-basics-share-info/m-p/260690#M8241</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2016-02-18T11:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Macro basics - share info</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Macro-basics-share-info/m-p/260691#M8242</link>
      <description>Official documentation:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://gdl.graphisoft.com/gdl-docs/gdl-guide/chapter-11-control-statements/macro-objects/" target="_blank"&gt;&lt;LINK_TEXT text="http://gdl.graphisoft.com/gdl-docs/gdl- ... o-objects/"&gt;http://gdl.graphisoft.com/gdl-docs/gdl-guide/chapter-11-control-statements/macro-objects/&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://gdl.graphisoft.com/gdl-docs/basic-technical-standards/writing-macros/" target="_blank"&gt;&lt;LINK_TEXT text="http://gdl.graphisoft.com/gdl-docs/basi ... ng-macros/"&gt;http://gdl.graphisoft.com/gdl-docs/basic-technical-standards/writing-macros/&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
All results returned for the search term "macro" from gdl.graphisoft.com:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://www.google.hu/search?sourceid=chrome-psyapi2&amp;amp;ion=1&amp;amp;espv=2&amp;amp;ie=UTF-8&amp;amp;q=macro%20site%3Agdl.graphisoft.com%2Fgdl-docs%2F&amp;amp;oq=macro%20site%3Agdl.graphisoft.com%2Fgdl-docs%2F" target="_blank"&gt;&lt;LINK_TEXT text="https://www.google.hu/search?sourceid=c ... dl-docs%2F"&gt;https://www.google.hu/search?sourceid=chrome-psyapi2&amp;amp;ion=1&amp;amp;espv=2&amp;amp;ie=UTF-8&amp;amp;q=macro%20site%3Agdl.graphisoft.com%2Fgdl-docs%2F&amp;amp;oq=macro%20site%3Agdl.graphisoft.com%2Fgdl-docs%2F&lt;/LINK_TEXT&gt;&lt;/A&gt;</description>
      <pubDate>Thu, 18 Feb 2016 13:23:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Macro-basics-share-info/m-p/260691#M8242</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2016-02-18T13:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Macro basics - share info</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Macro-basics-share-info/m-p/260692#M8243</link>
      <description>Thanks everyone !&lt;BR /&gt;
&lt;BR /&gt;
The key was to use the "Open by subtype".&lt;BR /&gt;
&lt;BR /&gt;
Next question:&lt;BR /&gt;
&lt;BR /&gt;
Typical slab opening object names "Floor Opening Symbol" found in:&lt;BR /&gt;
Archicad Library &amp;gt; BASIC LIBRARY &amp;gt; 1.7 2D Elements &amp;gt; graphic Symbols&lt;BR /&gt;
&lt;BR /&gt;
has no code itself, only parameters and the call function in "Master":&lt;BR /&gt;

&lt;PRE&gt;EPS = 0.0001
if GLOB_SCRIPT_TYPE &amp;lt;&amp;gt; 7 &amp;amp; GLOB_SCRIPT_TYPE &amp;lt;&amp;gt; 8 then
	call "slabOpeningSymbol_m" parameters all iSymbolType		= 1
endif&lt;/PRE&gt;
&lt;B&gt;&lt;BR /&gt;
Does anyone have an idea what is the reason to keep the code inside the macro and not in the object itself ? &lt;/B&gt;&lt;BR /&gt;
I would understand thsi if this macro would be used inside any other object but I don't know any other slab opening objects .&lt;BR /&gt;
&lt;BR /&gt;
So... last question:&lt;BR /&gt;
&lt;B&gt;Is there a way to discover in which objects is a particular macro used ?&lt;/B&gt;</description>
      <pubDate>Fri, 19 Feb 2016 13:42:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Macro-basics-share-info/m-p/260692#M8243</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-19T13:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Macro basics - share info</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Macro-basics-share-info/m-p/260693#M8244</link>
      <description>The reason is the object (the macro) is a whole object...and the "real" clickable object is just changing the parameters to suit the needs...and maybe it is used in more objects (but it is not possible automatically to find the all objects using it)&lt;BR /&gt;
Another example of such objects are all doors (almost) - they "only" call the "superdoor" object with some parameters (and soome are not user accesible normally) eg: the single door...double...sidelights etc.&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Piotr</description>
      <pubDate>Fri, 19 Feb 2016 19:42:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Macro-basics-share-info/m-p/260693#M8244</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2016-02-19T19:42:46Z</dc:date>
    </item>
  </channel>
</rss>

