<?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: ACAPI_LibraryPart_OpenParameters returns APIERR_GENERAL (-2130313215) for AC9-era GSM -what caus in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-LibraryPart-OpenParameters-returns-APIERR-GENERAL/m-p/707179#M10970</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm going to debug it, and get back to you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Tamás&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jul 2026 16:31:50 GMT</pubDate>
    <dc:creator>Tamas Polyak</dc:creator>
    <dc:date>2026-07-02T16:31:50Z</dc:date>
    <item>
      <title>ACAPI_LibraryPart_OpenParameters returns APIERR_GENERAL (-2130313215) for AC9-era GSM -what cause it</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-LibraryPart-OpenParameters-returns-APIERR-GENERAL/m-p/706948#M10967</link>
      <description>&lt;P&gt;I'm porting an AC9 add-on to AC28 (DevKit 28.4001).&lt;BR /&gt;When my add-on calls ACAPI_LibraryPart_OpenParameters on one specific&lt;BR /&gt;GSM, it returns APIERR_GENERAL (-2130313215 / 0x81060001). The library&lt;BR /&gt;part loads correctly and places fine manually via the Object Tool, but&lt;BR /&gt;my C++ code cannot open a parameter session on it.&lt;/P&gt;&lt;P&gt;Failing GSM: "Slab Extras New.gsm" (48 parameters, AC9-migrated,&lt;BR /&gt;GDL scripts contain glob_user_2/17/18 reads and request("Story"/&lt;BR /&gt;"Home_story") calls in the Master script).&lt;/P&gt;&lt;P&gt;Working GSMs in the same library (&amp;nbsp;all use the same OpenParameters workflow&lt;BR /&gt;successfully.&lt;/P&gt;&lt;P&gt;Code — standard call per LibPart_Test.cpp example:&lt;/P&gt;&lt;P&gt;API_ParamOwnerType owner;&lt;BR /&gt;BNZeroMemory(&amp;amp;owner, sizeof(API_ParamOwnerType));&lt;BR /&gt;owner.libInd = libPart.index; // valid index, positive&lt;BR /&gt;GSErrCode err = ACAPI_LibraryPart_OpenParameters(&amp;amp;owner);&lt;BR /&gt;// err == -2130313215&lt;/P&gt;&lt;P&gt;The SDK header comment for ACAPI_LibraryPart_OpenParameters says&lt;BR /&gt;APIERR_GENERAL means "the library part do not has parameters" — but&lt;BR /&gt;this part does have 48 parameters (LibPart_GetParams succeeds), so&lt;BR /&gt;that description doesn't match my case.&lt;/P&gt;&lt;P&gt;What I've tried:&lt;BR /&gt;- Stripped null-GUID &amp;lt;CalledMacros&amp;gt; entries from the GSM → still fails&lt;BR /&gt;- Initialised uninitialised variables the GDL editor flagged → still fails&lt;BR /&gt;- Removed AC9-era glob_modpar_name guards → still fails&lt;BR /&gt;- Guarded glob_user_* reads with value checks → still fails&lt;BR /&gt;- Compared byte-by-byte structure with working GSMs — the failing one&lt;BR /&gt;has 3 unguarded parameter mutation blocks and 2 unguarded&lt;BR /&gt;request("Story"/"Home_story") calls in Master, but working GSMs&lt;BR /&gt;wrap those in `if not(GLOB_CONTEXT = 3 or GLOB_CONTEXT = 4) then`&lt;BR /&gt;(I've tried both with and without the guard).&lt;/P&gt;&lt;P&gt;Question:&lt;BR /&gt;What specific GDL construct causes AC28's parameter engine to refuse&lt;BR /&gt;OpenParameters for an otherwise-valid GSM? The exact rule isn't&lt;BR /&gt;documented in the SDK, the GDL Reference Guide, or the GDL Style&lt;BR /&gt;Guide. Which construct specifically triggers APIERR_GENERAL from&lt;BR /&gt;the parameter session opener?&lt;/P&gt;&lt;P&gt;I've attached the failing GSM and the XML decompile for reproduction.&lt;/P&gt;&lt;P&gt;Add-on version: Archicad 28, DevKit build 4001.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="grey"&gt;Operating system used: &lt;EM&gt;Windows 11&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2026 03:41:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-LibraryPart-OpenParameters-returns-APIERR-GENERAL/m-p/706948#M10967</guid>
      <dc:creator>Steve Sunny</dc:creator>
      <dc:date>2026-07-01T03:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: ACAPI_LibraryPart_OpenParameters returns APIERR_GENERAL (-2130313215) for AC9-era GSM -what caus</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-LibraryPart-OpenParameters-returns-APIERR-GENERAL/m-p/707179#M10970</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm going to debug it, and get back to you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Tamás&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2026 16:31:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-LibraryPart-OpenParameters-returns-APIERR-GENERAL/m-p/707179#M10970</guid>
      <dc:creator>Tamas Polyak</dc:creator>
      <dc:date>2026-07-02T16:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: ACAPI_LibraryPart_OpenParameters returns APIERR_GENERAL (-2130313215) for AC9-era GSM -what caus</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-LibraryPart-OpenParameters-returns-APIERR-GENERAL/m-p/707196#M10971</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2026 23:25:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-LibraryPart-OpenParameters-returns-APIERR-GENERAL/m-p/707196#M10971</guid>
      <dc:creator>Steve Sunny</dc:creator>
      <dc:date>2026-07-02T23:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: ACAPI_LibraryPart_OpenParameters returns APIERR_GENERAL (-2130313215) for AC9-era GSM -what caus</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-LibraryPart-OpenParameters-returns-APIERR-GENERAL/m-p/707445#M10974</link>
      <description>&lt;P&gt;did you get any chance to look at it ?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2026 21:44:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-LibraryPart-OpenParameters-returns-APIERR-GENERAL/m-p/707445#M10974</guid>
      <dc:creator>Steve Sunny</dc:creator>
      <dc:date>2026-07-06T21:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: ACAPI_LibraryPart_OpenParameters returns APIERR_GENERAL (-2130313215) for AC9-era GSM -what caus</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-LibraryPart-OpenParameters-returns-APIERR-GENERAL/m-p/707489#M10975</link>
      <description>&lt;P&gt;Hi Steve,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry about the delay.&lt;/P&gt;
&lt;P&gt;The reason for the &lt;SPAN&gt;APIERR_GENERAL&amp;nbsp;return value is because there is a division by zero error running the Parameter script when you ask for the parameters.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The division by zero comes from the Master script which is executed before the Parameter script.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I don't know if running the 2D script the same error would occur, because the object is missing necessary macros.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Tamás&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2026 08:18:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-LibraryPart-OpenParameters-returns-APIERR-GENERAL/m-p/707489#M10975</guid>
      <dc:creator>Tamas Polyak</dc:creator>
      <dc:date>2026-07-07T08:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: ACAPI_LibraryPart_OpenParameters returns APIERR_GENERAL (-2130313215) for AC9-era GSM -what caus</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-LibraryPart-OpenParameters-returns-APIERR-GENERAL/m-p/707695#M10978</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2026 21:30:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-LibraryPart-OpenParameters-returns-APIERR-GENERAL/m-p/707695#M10978</guid>
      <dc:creator>Steve Sunny</dc:creator>
      <dc:date>2026-07-08T21:30:23Z</dc:date>
    </item>
  </channel>
</rss>

