<?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: How to call a different Macro in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/How-to-call-a-different-Macro/m-p/359234#M1395</link>
    <description>&lt;P&gt;Thank You Barry. The same I had in mind as well. So it seems that the problem only happens in AC 26. I checked AC 22 and 25 and there it works as expected.&lt;/P&gt;</description>
    <pubDate>Thu, 20 Oct 2022 08:56:33 GMT</pubDate>
    <dc:creator>Jochen Suehlo</dc:creator>
    <dc:date>2022-10-20T08:56:33Z</dc:date>
    <item>
      <title>How to call a different Macro</title>
      <link>https://community.graphisoft.com/t5/GDL/How-to-call-a-different-Macro/m-p/359142#M1393</link>
      <description>&lt;P&gt;When I make a macro call or a libraryglobal call within the object an it is saved, the called macros will get in the object header, which you can see when you convert the gsm file into an xml file.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;Symbol IsArchivable="false" IsPlaceable="true" MainGUID="BC55626E-C77B-D544-8B40-189E7E928E23" MigrationValue="Normal" Owner="1196638531" Signature="1196644685" Version="44"&amp;gt;
&amp;lt;Ancestry SectVersion="1" SectionFlags="0" SubIdent="0" Template="false"&amp;gt;
	&amp;lt;MainGUID&amp;gt;F938E33A-329D-4A36-BE3E-85E126820996&amp;lt;/MainGUID&amp;gt;
	&amp;lt;MainGUID&amp;gt;B176ABF1-5813-478F-926B-28EE7C5DC1F7&amp;lt;/MainGUID&amp;gt;
	&amp;lt;MainGUID&amp;gt;4FD10D67-2F29-4844-A65A-6597589B0CB5&amp;lt;/MainGUID&amp;gt;
	&amp;lt;MainGUID&amp;gt;A73622DE-E40A-4E63-ADB7-52D13422BD06&amp;lt;/MainGUID&amp;gt;
&amp;lt;/Ancestry&amp;gt;

&amp;lt;CalledMacros SectVersion="2" SectionFlags="0" SubIdent="0"&amp;gt;
	&amp;lt;Macro&amp;gt;
		&amp;lt;MName&amp;gt;&amp;lt;![CDATA["My_Zone_MVO"]]&amp;gt;&amp;lt;/MName&amp;gt;
		&amp;lt;MainGUID&amp;gt;DB0479B0-A4A0-E44B-B00E-700296C3A1F3&amp;lt;/MainGUID&amp;gt;
	&amp;lt;/Macro&amp;gt;
&amp;lt;/CalledMacros&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here you can see the MainGUID of the called Macro.&lt;BR /&gt;If I change the name of the macro call to call another object, it will still call the old one which is saved by its GUID.&lt;BR /&gt;If I change the name of the macro itself, it still will be called.&lt;BR /&gt;If I delete teh macro, write a new one and give it the name of the old one, the macro will not be found because the GUID is different.&lt;/P&gt;&lt;P&gt;Does anybody know how to solve this problem?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 18:16:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/How-to-call-a-different-Macro/m-p/359142#M1393</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2022-10-19T18:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a different Macro</title>
      <link>https://community.graphisoft.com/t5/GDL/How-to-call-a-different-Macro/m-p/359205#M1394</link>
      <description>&lt;P&gt;In my experience, when scripting in GDL, if you rename the macro by just renaming the file in the operating system, the GDL object calling it will still work as it uses the embedded GUID as you mentioned.&lt;/P&gt;
&lt;P&gt;But if I change the name of the CALLed object or macro in the main object, so long as there is a new object (macro) with the new name (and it has a different GUID), then when I save the main object it re-links to the new object with the new GUID.&lt;/P&gt;
&lt;P&gt;I have not examined this in XML, but have not had trouble with linking to an old macro.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 04:01:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/How-to-call-a-different-Macro/m-p/359205#M1394</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2022-10-20T04:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a different Macro</title>
      <link>https://community.graphisoft.com/t5/GDL/How-to-call-a-different-Macro/m-p/359234#M1395</link>
      <description>&lt;P&gt;Thank You Barry. The same I had in mind as well. So it seems that the problem only happens in AC 26. I checked AC 22 and 25 and there it works as expected.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 08:56:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/How-to-call-a-different-Macro/m-p/359234#M1395</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2022-10-20T08:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a different Macro</title>
      <link>https://community.graphisoft.com/t5/GDL/How-to-call-a-different-Macro/m-p/359533#M1396</link>
      <description>&lt;P&gt;Sometimes...the trick is to edit the caller while having the macro "changed" (but having the same name). After just resave the caller object it will eventually call the "new" file&lt;/P&gt;</description>
      <pubDate>Sun, 23 Oct 2022 05:28:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/How-to-call-a-different-Macro/m-p/359533#M1396</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2022-10-23T05:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a different Macro</title>
      <link>https://community.graphisoft.com/t5/GDL/How-to-call-a-different-Macro/m-p/360866#M1397</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please PM me with detailed step-by-step reproduction of what is different in AC26. The order of creating the macros might be important.&lt;/P&gt;
&lt;P&gt;It can be fixed reliably only by decompiling-recompiling the library using LP_XMLConverter with makelibrary or finalizelibrary command.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 10:18:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/How-to-call-a-different-Macro/m-p/360866#M1397</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2022-11-02T10:18:25Z</dc:date>
    </item>
  </channel>
</rss>

