<?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 ACAPI_ModulData_GetInfo returns APIERR_BADPARS [SOLVED] in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-ModulData-GetInfo-returns-APIERR-BADPARS-SOLVED/m-p/184288#M5259</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;I tried running the following code which is based on the example given at &lt;FONT color="#808080"&gt;ACAPI_ModulData_Get&lt;/FONT&gt; help:&lt;BR /&gt;
&lt;PRE&gt;API_ModulData info;
BNZeroMemory(&amp;amp;info, sizeof(API_ModulData));
GSErrCode err = ACAPI_ModulData_GetInfo(&amp;amp;info, "MyFirstDataBlock");
&lt;/PRE&gt;
It returned &lt;FONT color="#808080"&gt;APIERR_BADPARS&lt;/FONT&gt; which means "&lt;FONT color="#808080"&gt;info&lt;/FONT&gt; parameter is &lt;FONT color="#808080"&gt;NULL&lt;/FONT&gt;".&lt;BR /&gt;&lt;BR /&gt;&lt;IMG style="display: inline;" src="https://community.graphisoft.com/legacyfs/online/emojis/icon_question.gif" border="0" /&gt; Where did I go wrong? &lt;IMG style="display: inline;" src="https://community.graphisoft.com/legacyfs/online/emojis/icon_question.gif" border="0" /&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 01 Aug 2023 12:51:40 GMT</pubDate>
    <dc:creator>ReignBough</dc:creator>
    <dc:date>2023-08-01T12:51:40Z</dc:date>
    <item>
      <title>ACAPI_ModulData_GetInfo returns APIERR_BADPARS [SOLVED]</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-ModulData-GetInfo-returns-APIERR-BADPARS-SOLVED/m-p/184288#M5259</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;I tried running the following code which is based on the example given at &lt;FONT color="#808080"&gt;ACAPI_ModulData_Get&lt;/FONT&gt; help:&lt;BR /&gt;
&lt;PRE&gt;API_ModulData info;
BNZeroMemory(&amp;amp;info, sizeof(API_ModulData));
GSErrCode err = ACAPI_ModulData_GetInfo(&amp;amp;info, "MyFirstDataBlock");
&lt;/PRE&gt;
It returned &lt;FONT color="#808080"&gt;APIERR_BADPARS&lt;/FONT&gt; which means "&lt;FONT color="#808080"&gt;info&lt;/FONT&gt; parameter is &lt;FONT color="#808080"&gt;NULL&lt;/FONT&gt;".&lt;BR /&gt;&lt;BR /&gt;&lt;IMG style="display: inline;" src="https://community.graphisoft.com/legacyfs/online/emojis/icon_question.gif" border="0" /&gt; Where did I go wrong? &lt;IMG style="display: inline;" src="https://community.graphisoft.com/legacyfs/online/emojis/icon_question.gif" border="0" /&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Aug 2023 12:51:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-ModulData-GetInfo-returns-APIERR-BADPARS-SOLVED/m-p/184288#M5259</guid>
      <dc:creator>ReignBough</dc:creator>
      <dc:date>2023-08-01T12:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: ACAPI_ModulData_GetInfo returns APIERR_BADPARS</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-ModulData-GetInfo-returns-APIERR-BADPARS-SOLVED/m-p/184289#M5260</link>
      <description>Hi, &lt;BR /&gt;
 &lt;BR /&gt;
In this case APIERR_BADPARS error means the info parameter is NULL or your AddOn couldn't be loaded properly. Please check your MDID again, and check in Add-On Manager dialog if it shows any warnings/errors! &lt;BR /&gt;
 &lt;BR /&gt;
I tested this with ArchiCAD 17 INT 6540 FULL and it worked good. Soon I'll try it with your version also. &lt;BR /&gt;
 &lt;BR /&gt;
Regards, &lt;BR /&gt;
Tibor</description>
      <pubDate>Mon, 30 Jun 2014 09:05:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-ModulData-GetInfo-returns-APIERR-BADPARS-SOLVED/m-p/184289#M5260</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2014-06-30T09:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: ACAPI_ModulData_GetInfo returns APIERR_BADPARS</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-ModulData-GetInfo-returns-APIERR-BADPARS-SOLVED/m-p/184290#M5261</link>
      <description>Thanks Tibor.&lt;BR /&gt;
&lt;BR /&gt;
I put this code on the &lt;FONT color="#808080"&gt;CheckEnvironment()&lt;/FONT&gt; function. I was hoping to get the ModulData when the add-on loads.&lt;BR /&gt;
&lt;BR /&gt;
It works perfectly when I put it on other 'non-required' function, though.</description>
      <pubDate>Mon, 30 Jun 2014 09:35:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-ModulData-GetInfo-returns-APIERR-BADPARS-SOLVED/m-p/184290#M5261</guid>
      <dc:creator>ReignBough</dc:creator>
      <dc:date>2014-06-30T09:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: ACAPI_ModulData_GetInfo returns APIERR_BADPARS</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-ModulData-GetInfo-returns-APIERR-BADPARS-SOLVED/m-p/184291#M5262</link>
      <description>&lt;BLOCKQUOTE&gt;ReignBough wrote:&lt;BR /&gt;Thanks Tibor.&lt;BR /&gt;
&lt;BR /&gt;
I put this code on the &lt;FONT color="#808080"&gt;CheckEnvironment()&lt;/FONT&gt; function. I was hoping to get the ModulData when the add-on loads.&lt;BR /&gt;
&lt;BR /&gt;
It works perfectly when I put it on other 'non-required' function, though.&lt;/BLOCKQUOTE&gt;

The earliest place for that is the Initialize function; before that the API interface is not fully set up.&lt;BR /&gt;
&lt;BR /&gt;
CheckEnvironment and RegisterInterface are both called during ArchiCAD start up.&lt;BR /&gt;
&lt;BR /&gt;
Regards, Akos</description>
      <pubDate>Tue, 01 Jul 2014 08:17:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-ModulData-GetInfo-returns-APIERR-BADPARS-SOLVED/m-p/184291#M5262</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2014-07-01T08:17:03Z</dc:date>
    </item>
  </channel>
</rss>

