<?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: Exact Copy of AC Library Detail Marker Throws New Errors in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Exact-Copy-of-AC-Library-Detail-Marker-Throws-New-Errors/m-p/335367#M2787</link>
    <description>&lt;P&gt;As runxel wrote, macro calls are identified by a GUID (well, if they are compiled correctly from source code). Here is some explanation: &lt;A href="https://gdl.Graphisoft.com/gdl-style-guide/library-part-format" target="_blank"&gt;https://gdl.Graphisoft.com/gdl-style-guide/library-part-format&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Migration libraries need the old versions of a macro, they can't work with the newest if the parameters have changed.&lt;/P&gt;
&lt;P&gt;Currently the best way to check which library part is opened is the Open Object button's dropdown list of the "Edit GDL Library Parts" toolbar, it shows the URI of the selected item in the status bar. Sadly it doesn't work correctly in AC24-25, but that will be fixed.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Apr 2022 12:33:29 GMT</pubDate>
    <dc:creator>Peter Baksa</dc:creator>
    <dc:date>2022-04-12T12:33:29Z</dc:date>
    <item>
      <title>Exact Copy of AC Library Detail Marker Throws New Errors</title>
      <link>https://community.graphisoft.com/t5/GDL/Exact-Copy-of-AC-Library-Detail-Marker-Throws-New-Errors/m-p/334729#M2777</link>
      <description>&lt;P&gt;I am trying to tweak the marker &lt;STRONG&gt;Detail Marker 01 25&lt;/STRONG&gt; in the USA library. This library part has only a Master Script, which contains only a macro call for &lt;STRONG&gt;BaseMarker_macro&lt;/STRONG&gt;. All the action takes place in that macro; there are no further calls from any script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would think I could save as to create both&amp;nbsp;&lt;STRONG&gt;BaseMarker_macro_JM&amp;nbsp;&lt;/STRONG&gt;and&amp;nbsp;&lt;STRONG&gt;Detail Marker 01 JM&lt;/STRONG&gt;, and modify the marker object to call my new macro instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This done, with precisely zero changes to any script, the new marker starts reporting errors from all scripts:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The 2D script has a div0 error.&lt;/LI&gt;&lt;LI&gt;The interface script reports that a parameter name (bVerticalTextPosition) isn't valid. The UI is also missing portions in the settings dialog.&lt;/LI&gt;&lt;LI&gt;The parameter script says that&amp;nbsp;GLOB_SCALE is in use in the parameter script (via the master script). This is certainly true, but the original marker doesn't mind.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;To reiterate: This is after a pure save as, no changes except the new macro name in the caller.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's going on here, what am I missing, how do I fix it? Any help would be appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 17:19:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Exact-Copy-of-AC-Library-Detail-Marker-Throws-New-Errors/m-p/334729#M2777</guid>
      <dc:creator>James Murray</dc:creator>
      <dc:date>2022-04-05T17:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Exact Copy of AC Library Detail Marker Throws New Errors</title>
      <link>https://community.graphisoft.com/t5/GDL/Exact-Copy-of-AC-Library-Detail-Marker-Throws-New-Errors/m-p/334731#M2778</link>
      <description>&lt;P&gt;I am no expert in GDL so sorry if I'm off target here. Have you tried reloading the library?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 18:13:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Exact-Copy-of-AC-Library-Detail-Marker-Throws-New-Errors/m-p/334731#M2778</guid>
      <dc:creator>Miha_M</dc:creator>
      <dc:date>2022-04-05T18:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Exact Copy of AC Library Detail Marker Throws New Errors</title>
      <link>https://community.graphisoft.com/t5/GDL/Exact-Copy-of-AC-Library-Detail-Marker-Throws-New-Errors/m-p/334732#M2779</link>
      <description>&lt;P&gt;Yes.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 18:14:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Exact-Copy-of-AC-Library-Detail-Marker-Throws-New-Errors/m-p/334732#M2779</guid>
      <dc:creator>James Murray</dc:creator>
      <dc:date>2022-04-05T18:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Exact Copy of AC Library Detail Marker Throws New Errors</title>
      <link>https://community.graphisoft.com/t5/GDL/Exact-Copy-of-AC-Library-Detail-Marker-Throws-New-Errors/m-p/334748#M2780</link>
      <description>&lt;P&gt;I don't have 25 but I could test on 24 to see if the same thing happens?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 23:11:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Exact-Copy-of-AC-Library-Detail-Marker-Throws-New-Errors/m-p/334748#M2780</guid>
      <dc:creator>SenecaDesignLLC</dc:creator>
      <dc:date>2022-04-05T23:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Exact Copy of AC Library Detail Marker Throws New Errors</title>
      <link>https://community.graphisoft.com/t5/GDL/Exact-Copy-of-AC-Library-Detail-Marker-Throws-New-Errors/m-p/334755#M2781</link>
      <description>&lt;P&gt;I just tried with that marker from the AUS library.&lt;/P&gt;
&lt;P&gt;I assume it is the same (not like doors and windows)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I opened both the detail marker object and the macro.&lt;/P&gt;
&lt;P&gt;I 'saved as' and renamed the macro first.&lt;/P&gt;
&lt;P&gt;Then I adjusted the 'CALL" in the detail marker object to be the new name of the macro and then I 'saved as' and renamed the detail marker object.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All fine and no error messages when checking scripts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 01:01:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Exact-Copy-of-AC-Library-Detail-Marker-Throws-New-Errors/m-p/334755#M2781</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2022-04-06T01:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Exact Copy of AC Library Detail Marker Throws New Errors</title>
      <link>https://community.graphisoft.com/t5/GDL/Exact-Copy-of-AC-Library-Detail-Marker-Throws-New-Errors/m-p/334803#M2782</link>
      <description>&lt;P&gt;Just tried it in 24, where it worked, and re-tried it in 25, where it worked.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_with_rolling_eyes:"&gt;🙄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried the problem marker in a new file, where it failed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The bad marker is attached if you want to have a look. When I tried to post the macro, I got the interesting result that the CMS rejected it because its type didn't match its extension, which I can assure you is not true. That's why the macro is zipped.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 12:04:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Exact-Copy-of-AC-Library-Detail-Marker-Throws-New-Errors/m-p/334803#M2782</guid>
      <dc:creator>James Murray</dc:creator>
      <dc:date>2022-04-06T12:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Exact Copy of AC Library Detail Marker Throws New Errors</title>
      <link>https://community.graphisoft.com/t5/GDL/Exact-Copy-of-AC-Library-Detail-Marker-Throws-New-Errors/m-p/334821#M2783</link>
      <description>&lt;P&gt;Something went wrong with your macro.&lt;/P&gt;
&lt;P&gt;It seems to be from an older version?&lt;/P&gt;
&lt;P&gt;Somehow you renamed the wrong macro the first time.&lt;/P&gt;
&lt;P&gt;That may be why it has the GLOB_SCALE issue and other warnings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I compare that one to the 25 one they are definitely different.&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-1649253693984.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/20347i2ECDA2EADF18B126/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BarryKelly_0-1649253693984.png" alt="BarryKelly_0-1649253693984.png" /&gt;&lt;/span&gt;&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>Wed, 06 Apr 2022 14:02:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Exact-Copy-of-AC-Library-Detail-Marker-Throws-New-Errors/m-p/334821#M2783</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2022-04-06T14:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Exact Copy of AC Library Detail Marker Throws New Errors</title>
      <link>https://community.graphisoft.com/t5/GDL/Exact-Copy-of-AC-Library-Detail-Marker-Throws-New-Errors/m-p/334837#M2784</link>
      <description>&lt;P&gt;**beep**. There must have been another&amp;nbsp;BaseMarker_macro loaded and that got opened when I did Open Object from the master script. Thanks for looking into it Barry. Crazy-making.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 15:00:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Exact-Copy-of-AC-Library-Detail-Marker-Throws-New-Errors/m-p/334837#M2784</guid>
      <dc:creator>James Murray</dc:creator>
      <dc:date>2022-04-06T15:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Exact Copy of AC Library Detail Marker Throws New Errors</title>
      <link>https://community.graphisoft.com/t5/GDL/Exact-Copy-of-AC-Library-Detail-Marker-Throws-New-Errors/m-p/334841#M2785</link>
      <description>&lt;P&gt;Graphisoft has helpfully included an old BaseMarker_macro in the Migration library, specifically the AC22 migration library. That's the file that opens when you select the name text and Open Object, though the macro call itself works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I remain amazed that any of this creaky beep works at all.&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="Screen Shot 2022-04-06 at 11.20.02 AM.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/20354i4F59A5B030874350/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-04-06 at 11.20.02 AM.png" alt="Screen Shot 2022-04-06 at 11.20.02 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 15:21:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Exact-Copy-of-AC-Library-Detail-Marker-Throws-New-Errors/m-p/334841#M2785</guid>
      <dc:creator>James Murray</dc:creator>
      <dc:date>2022-04-06T15:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Exact Copy of AC Library Detail Marker Throws New Errors</title>
      <link>https://community.graphisoft.com/t5/GDL/Exact-Copy-of-AC-Library-Detail-Marker-Throws-New-Errors/m-p/334966#M2786</link>
      <description>&lt;P&gt;Interesting find, James! I am not that much amazed tho, and I have a good guess at what happened here. Let me explain:&lt;/P&gt;&lt;P&gt;While the actual CALL in an object is made by the macro's name, something else in the background happens. Archicad wants to be extra sure to call the right macro. So to avoid collisions there is a "secret" library part. One can actually see it when converting a .gsm to the HSF format via the LP_XMLConverter. There will be a bunch of .xml files, one being the "calledmacros.xml" file.&lt;/P&gt;&lt;P&gt;It's content might look like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;CalledMacros&amp;gt;
	&amp;lt;Macro&amp;gt;
		&amp;lt;MName&amp;gt;&amp;lt;![CDATA["BasicGeometry"]]&amp;gt;&amp;lt;/MName&amp;gt;
		&amp;lt;MainGUID&amp;gt;EEDF5B3C-D4C1-40DC-88F8-A8399D8569D5&amp;lt;/MainGUID&amp;gt;
	&amp;lt;/Macro&amp;gt;
&amp;lt;/CalledMacros&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;A voila! The macro will &lt;EM&gt;not&lt;/EM&gt; be called by the &lt;EM&gt;name&lt;/EM&gt;! This is done only so the user doesn't need to handle the GUIDs themself.&lt;/P&gt;&lt;P&gt;However... now comes the caveat.&lt;/P&gt;&lt;P&gt;Because you used the "mark-name-in-editor-and-hit-open" trick you opened the wrong file unbeknownst to you. In this case Archicad has no other clue, it doesn't actually check the GUID. Probably because this part will only be written on save and this function had to be working before that already. (Works even from the project notes btw!)&lt;/P&gt;&lt;P&gt;Why did Archicad choose the wrong file?&lt;/P&gt;&lt;P&gt;The migration library will be loaded first. Thats why. First come first serves.&lt;/P&gt;&lt;P&gt;This explains also why nobody could replicate your issue.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 20:19:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Exact-Copy-of-AC-Library-Detail-Marker-Throws-New-Errors/m-p/334966#M2786</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2022-04-07T20:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Exact Copy of AC Library Detail Marker Throws New Errors</title>
      <link>https://community.graphisoft.com/t5/GDL/Exact-Copy-of-AC-Library-Detail-Marker-Throws-New-Errors/m-p/335367#M2787</link>
      <description>&lt;P&gt;As runxel wrote, macro calls are identified by a GUID (well, if they are compiled correctly from source code). Here is some explanation: &lt;A href="https://gdl.Graphisoft.com/gdl-style-guide/library-part-format" target="_blank"&gt;https://gdl.Graphisoft.com/gdl-style-guide/library-part-format&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Migration libraries need the old versions of a macro, they can't work with the newest if the parameters have changed.&lt;/P&gt;
&lt;P&gt;Currently the best way to check which library part is opened is the Open Object button's dropdown list of the "Edit GDL Library Parts" toolbar, it shows the URI of the selected item in the status bar. Sadly it doesn't work correctly in AC24-25, but that will be fixed.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 12:33:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Exact-Copy-of-AC-Library-Detail-Marker-Throws-New-Errors/m-p/335367#M2787</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2022-04-12T12:33:29Z</dc:date>
    </item>
  </channel>
</rss>

