<?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_Automate returning REFUSEDCMD error in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Automate-returning-REFUSEDCMD-error/m-p/190327#M5666</link>
    <description>Hi, &lt;BR /&gt;
 &lt;BR /&gt;
Unfortunately you can't use APIDo_CloseID from an AddOn, it's not a public operation. That's why it was refused. &lt;BR /&gt;
 &lt;BR /&gt;
I don't know why do you need to close, but maybe the following function can help you: 
&lt;PRE&gt;ACAPI_Database (APIDb_CloseWindowID, API_WindowInfo* windowPars, NULL, NULL);&lt;/PRE&gt; &lt;BR /&gt;
 &lt;BR /&gt;
Best, &lt;BR /&gt;
Tibi</description>
    <pubDate>Mon, 10 Sep 2012 12:42:40 GMT</pubDate>
    <dc:creator>Tibor Lorantfy</dc:creator>
    <dc:date>2012-09-10T12:42:40Z</dc:date>
    <item>
      <title>ACAPI_Automate returning REFUSEDCMD error</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Automate-returning-REFUSEDCMD-error/m-p/190326#M5665</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;I'm calling &lt;BR /&gt;err = ACAPI_Automate(APIDo_CloseID, NULL, NULL, NULL);&lt;BR /&gt;from my menu handler with a new plan open from a template and it returns APIERR_REFUSEDCMD&lt;BR /&gt;&lt;BR /&gt;Is there a way to close the current file?&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 Aug 2023 15:01:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Automate-returning-REFUSEDCMD-error/m-p/190326#M5665</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-02T15:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: ACAPI_Automate returning REFUSEDCMD error</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Automate-returning-REFUSEDCMD-error/m-p/190327#M5666</link>
      <description>Hi, &lt;BR /&gt;
 &lt;BR /&gt;
Unfortunately you can't use APIDo_CloseID from an AddOn, it's not a public operation. That's why it was refused. &lt;BR /&gt;
 &lt;BR /&gt;
I don't know why do you need to close, but maybe the following function can help you: 
&lt;PRE&gt;ACAPI_Database (APIDb_CloseWindowID, API_WindowInfo* windowPars, NULL, NULL);&lt;/PRE&gt; &lt;BR /&gt;
 &lt;BR /&gt;
Best, &lt;BR /&gt;
Tibi</description>
      <pubDate>Mon, 10 Sep 2012 12:42:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Automate-returning-REFUSEDCMD-error/m-p/190327#M5666</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2012-09-10T12:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: ACAPI_Automate returning REFUSEDCMD error</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Automate-returning-REFUSEDCMD-error/m-p/190328#M5667</link>
      <description>Thank you.&lt;BR /&gt;
&lt;BR /&gt;
The Document Management System I'm interfacing with has a close after checkin option which I was trying to honour.&lt;BR /&gt;
However as the Addon is disabled if the file is closed I've decided to not honour the option.&lt;BR /&gt;
&lt;BR /&gt;
Thanks again.</description>
      <pubDate>Mon, 10 Sep 2012 22:16:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Automate-returning-REFUSEDCMD-error/m-p/190328#M5667</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-10T22:16:19Z</dc:date>
    </item>
  </channel>
</rss>

