<?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_Command_Call in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Command-Call/m-p/278610#M2136</link>
    <description>Bernd,&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the information.  I will look in to this when I can circle back around to that project.&lt;BR /&gt;
It already sounds helpful though.</description>
    <pubDate>Fri, 16 Jul 2021 15:09:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-07-16T15:09:00Z</dc:date>
    <item>
      <title>ACAPI_Command_Call</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Command-Call/m-p/278607#M2133</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;I am trying to find info about the second argument to ACAPI_Command_Call.&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;&lt;I&gt;    GSErrCode  ACAPI_Command_Call (
        const API_ModulID*     mdid,
        GSType                 cmdID,
        Int32                  cmdVersion,
        GSHandle               params,
        GSPtr                  resultData,
        bool                   silentMode
    );

Parameters
cmdID 
[in] the identifier of the command to be executed.&lt;/I&gt;&lt;/PRE&gt;
&lt;BR /&gt;Examples have shown me two options - 'OBJO' and 'GDCO'.&lt;BR /&gt;- - What exactly is the 'identifier of the command'? I thought it would be the function name from the Add-on I was calling from that I want to run remotely. When I provide that, I get an error of "Too many characters for in character constant". So I am thinking there is a #define somewhere that might explain it a little more. No luck finding that.&lt;BR /&gt;- - What are the options, only the 2 I list above? And what do they mean?&lt;BR /&gt;- - How do I know when to use each option?&lt;BR /&gt;&lt;BR /&gt;thanks -&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Sep 2021 07:31:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Command-Call/m-p/278607#M2133</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-14T07:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: ACAPI_Command_Call</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Command-Call/m-p/278608#M2134</link>
      <description>As I dig into this a little more, I get to &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;ACAPI_Register_SupportedService&lt;E&gt;&lt;/E&gt;, which registers a command that can be used by other add-ons.  Documentation on this shows an example:&lt;BR /&gt;
&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;err = ACAPI_Register_SupportedService ('DWFO', 4L);&lt;/I&gt;&lt;/PRE&gt;

&lt;BR /&gt;
that introduces another value for &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;cmdID&lt;E&gt;&lt;/E&gt; - - 'DWFO'.  Any ideas on this one?  My first thought is that when I use this to register the command, I can provide a logical name of my choice to be referenced later on by ACAPI_Command_Call.&lt;BR /&gt;
&lt;BR /&gt;
Also, '4L' is the command version of the supported service - can you point me to further documentation of that for translation?&lt;BR /&gt;
&lt;BR /&gt;
Please and thank you -</description>
      <pubDate>Fri, 25 Jun 2021 16:18:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Command-Call/m-p/278608#M2134</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-25T16:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: ACAPI_Command_Call</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Command-Call/m-p/278609#M2135</link>
      <description>Hi! I haven't used this myself yet but I read through the documentation on it because I thought I could need it. I hope my thoughts on it can help a little anyway. I think the most important documentation page is: &lt;A href="https://archicadapi.graphisoft.com/documentation/communication-manager" target="_blank"&gt;&lt;LINK_TEXT text="https://archicadapi.graphisoft.com/docu ... on-manager"&gt;https://archicadapi.graphisoft.com/documentation/communication-manager&lt;/LINK_TEXT&gt;&lt;/A&gt;.&lt;BR /&gt;
&lt;BR /&gt;
Regarding the `cmdId` I also think that it's an identifier of your choice when you register the command. `cmdVersion` is also a version of your choice. I think of it as kind of like Archicad versions. E.g. You could add more functionality in your version 2 of your add-on and another add-on can then check if version 2 of is installed and use that extra functionality. "4L" in that example stands for version 4 where the number type is "long".&lt;BR /&gt;
&lt;BR /&gt;
"parameters" seem to be the actual parameters to the command. Those parameters are then handled by an installed command handler (cf. &lt;A href="https://archicadapi.graphisoft.com/documentation/acapi_install_modulcommandhandler" target="_blank"&gt;&lt;LINK_TEXT text="https://archicadapi.graphisoft.com/docu ... andhandler"&gt;https://archicadapi.graphisoft.com/documentation/acapi_install_modulcommandhandler&lt;/LINK_TEXT&gt;&lt;/A&gt; and &lt;A href="https://archicadapi.graphisoft.com/documentation/apimodulcommandproc" target="_blank"&gt;&lt;LINK_TEXT text="https://archicadapi.graphisoft.com/docu ... ommandproc"&gt;https://archicadapi.graphisoft.com/documentation/apimodulcommandproc&lt;/LINK_TEXT&gt;&lt;/A&gt;) and the return values are stored in "resultData".&lt;BR /&gt;
&lt;BR /&gt;
For code you can take a look at the API example projects Communication_Manager and Communication_Client.&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps a little bit &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;</description>
      <pubDate>Fri, 09 Jul 2021 20:09:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Command-Call/m-p/278609#M2135</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2021-07-09T20:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: ACAPI_Command_Call</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Command-Call/m-p/278610#M2136</link>
      <description>Bernd,&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the information.  I will look in to this when I can circle back around to that project.&lt;BR /&gt;
It already sounds helpful though.</description>
      <pubDate>Fri, 16 Jul 2021 15:09:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Command-Call/m-p/278610#M2136</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-16T15:09:00Z</dc:date>
    </item>
  </channel>
</rss>

