<?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 Betreff: Gracefully handle macro call when macro is missing - is this possible? in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Gracefully-handle-macro-call-when-macro-is-missing-is-this/m-p/673827#M7909</link>
    <description>&lt;P&gt;Probably due to A and B being default parameters for all object types and are hence always discoverable even if the placed object is not loaded. For science, what happens if you query ZZYZX for a missing 2D object?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ling.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Aug 2025 01:26:03 GMT</pubDate>
    <dc:creator>Lingwisyer</dc:creator>
    <dc:date>2025-08-19T01:26:03Z</dc:date>
    <item>
      <title>Gracefully handle macro call when macro is missing - is this possible?</title>
      <link>https://community.graphisoft.com/t5/GDL/Gracefully-handle-macro-call-when-macro-is-missing-is-this/m-p/669525#M7835</link>
      <description>&lt;P&gt;Looking for a way to gracefully notify user if they don't have the necessary macro loaded in the library.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jul 2025 13:59:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Gracefully-handle-macro-call-when-macro-is-missing-is-this/m-p/669525#M7835</guid>
      <dc:creator>Davor P</dc:creator>
      <dc:date>2025-07-12T13:59:13Z</dc:date>
    </item>
    <item>
      <title>Betreff: Gracefully handle macro call when macro is missing - is this possible?</title>
      <link>https://community.graphisoft.com/t5/GDL/Gracefully-handle-macro-call-when-macro-is-missing-is-this/m-p/669526#M7836</link>
      <description>&lt;P&gt;As you probably found out already if you directly call a macro and it's not available the whole object "crashes". Sadly there is no direct way to handle this gracefully, but I found a workaround:&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;rrr = LIBRARYGLOBAL("object name", "name_of_some_param", value)&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;If you use the LIBRARYGLOBAL command/request you its result will either be 0 or 1, and if it's 0 it means the object is not in the loaded library (GDL does not actually know beforehand if an object is a true library global or not, that's why this will work without complains!).&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jul 2025 18:50:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Gracefully-handle-macro-call-when-macro-is-missing-is-this/m-p/669526#M7836</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2025-07-12T18:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Gracefully handle macro call when macro is missing - is this possible?</title>
      <link>https://community.graphisoft.com/t5/GDL/Gracefully-handle-macro-call-when-macro-is-missing-is-this/m-p/669535#M7837</link>
      <description>&lt;P&gt;Thanks Lucas, that works perfect!&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jul 2025 04:19:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Gracefully-handle-macro-call-when-macro-is-missing-is-this/m-p/669535#M7837</guid>
      <dc:creator>Davor P</dc:creator>
      <dc:date>2025-07-13T04:19:51Z</dc:date>
    </item>
    <item>
      <title>Betreff: Gracefully handle macro call when macro is missing - is this possible?</title>
      <link>https://community.graphisoft.com/t5/GDL/Gracefully-handle-macro-call-when-macro-is-missing-is-this/m-p/673696#M7908</link>
      <description>&lt;P&gt;Thanks for this Runxel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An interesting limitation I found is I can't use A,B, or ZZYZX. It seems to get a return value from somewhere? so rrr = 1 in this case. Any other parameter is ok, if missing rrr returns 0.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 02:50:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Gracefully-handle-macro-call-when-macro-is-missing-is-this/m-p/673696#M7908</guid>
      <dc:creator>easyDoesIt</dc:creator>
      <dc:date>2025-08-19T02:50:37Z</dc:date>
    </item>
    <item>
      <title>Betreff: Gracefully handle macro call when macro is missing - is this possible?</title>
      <link>https://community.graphisoft.com/t5/GDL/Gracefully-handle-macro-call-when-macro-is-missing-is-this/m-p/673827#M7909</link>
      <description>&lt;P&gt;Probably due to A and B being default parameters for all object types and are hence always discoverable even if the placed object is not loaded. For science, what happens if you query ZZYZX for a missing 2D object?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ling.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 01:26:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Gracefully-handle-macro-call-when-macro-is-missing-is-this/m-p/673827#M7909</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2025-08-19T01:26:03Z</dc:date>
    </item>
    <item>
      <title>Betreff: Gracefully handle macro call when macro is missing - is this possible?</title>
      <link>https://community.graphisoft.com/t5/GDL/Gracefully-handle-macro-call-when-macro-is-missing-is-this/m-p/673835#M7911</link>
      <description>&lt;P&gt;returns 1 for rrr and 1.000 for the value of the non-existent ZZYZX....&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 02:50:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Gracefully-handle-macro-call-when-macro-is-missing-is-this/m-p/673835#M7911</guid>
      <dc:creator>easyDoesIt</dc:creator>
      <dc:date>2025-08-19T02:50:08Z</dc:date>
    </item>
    <item>
      <title>Betreff: Gracefully handle macro call when macro is missing - is this possible?</title>
      <link>https://community.graphisoft.com/t5/GDL/Gracefully-handle-macro-call-when-macro-is-missing-is-this/m-p/673848#M7912</link>
      <description>&lt;P&gt;My guess is that there is a "flaw" in how this works internally. MVOs never have these parameters (since they make no sense in this context).&lt;/P&gt;
&lt;P&gt;Placeable objects however do. The "result" may come from the subtype, where the A, B and ZZYZX values are set to 1.0.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 06:32:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Gracefully-handle-macro-call-when-macro-is-missing-is-this/m-p/673848#M7912</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2025-08-19T06:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Gracefully handle macro call when macro is missing - is this possible?</title>
      <link>https://community.graphisoft.com/t5/GDL/Gracefully-handle-macro-call-when-macro-is-missing-is-this/m-p/673974#M7916</link>
      <description>&lt;P&gt;Most likely, although I managed to get a value of 4.4 for A in one instance, for a non existent library part, but couldn't repeat.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 03:52:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Gracefully-handle-macro-call-when-macro-is-missing-is-this/m-p/673974#M7916</guid>
      <dc:creator>easyDoesIt</dc:creator>
      <dc:date>2025-08-20T03:52:42Z</dc:date>
    </item>
  </channel>
</rss>

