<?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 AddOn functions call back in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/AddOn-functions-call-back/m-p/286101#M3610</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;I believe it is possible to call one plugin from another. Is it possible to call a function within one plugin from another plugin ?&lt;BR /&gt;&lt;BR /&gt;if so, any documentation? &lt;BR /&gt;&lt;BR /&gt;I am asking out of convenience. If one compiles and loads the Example plugins. One could easily create a new addon which could directly call those pre-defined functions without having to cut/paste the function and all its resources?&lt;/DIV&gt;</description>
    <pubDate>Tue, 04 Oct 2022 14:39:11 GMT</pubDate>
    <dc:creator>poco2013</dc:creator>
    <dc:date>2022-10-04T14:39:11Z</dc:date>
    <item>
      <title>AddOn functions call back</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/AddOn-functions-call-back/m-p/286101#M3610</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;I believe it is possible to call one plugin from another. Is it possible to call a function within one plugin from another plugin ?&lt;BR /&gt;&lt;BR /&gt;if so, any documentation? &lt;BR /&gt;&lt;BR /&gt;I am asking out of convenience. If one compiles and loads the Example plugins. One could easily create a new addon which could directly call those pre-defined functions without having to cut/paste the function and all its resources?&lt;/DIV&gt;</description>
      <pubDate>Tue, 04 Oct 2022 14:39:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/AddOn-functions-call-back/m-p/286101#M3610</guid>
      <dc:creator>poco2013</dc:creator>
      <dc:date>2022-10-04T14:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: AddOn functions call back</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/AddOn-functions-call-back/m-p/286102#M3611</link>
      <description>There is a example in the Communications Manager that calls the Do place Text function in the Communication client addon.&lt;BR /&gt;
&lt;BR /&gt;
But it uses a command identifier of 'CmID to identify the text command.&lt;BR /&gt;
Where is this identifier assigned? Is it something you have to program or is it pre-assigned.&lt;BR /&gt;
Say I wanted to call a function from the Element_Test Add-On? How would I assign a identifier to a particular function in that add on so that I could call it from ACAPI_Command_Call()??</description>
      <pubDate>Tue, 19 Feb 2019 01:13:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/AddOn-functions-call-back/m-p/286102#M3611</guid>
      <dc:creator>poco2013</dc:creator>
      <dc:date>2019-02-19T01:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: AddOn functions call back</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/AddOn-functions-call-back/m-p/286103#M3612</link>
      <description>&lt;BLOCKQUOTE&gt;poco2013 wrote:&lt;BR /&gt;I believe it is possible to call one plugin from another.  Is it possible to call a function within one plugin from another plugin ?&lt;/BLOCKQUOTE&gt;

Yes, it's possible. You can find detailed documentation for this topic here: &lt;A href="http://archicadapi.graphisoft.com/documentation/communication-manager" target="_blank"&gt;&lt;LINK_TEXT text="http://archicadapi.graphisoft.com/docum ... on-manager"&gt;http://archicadapi.graphisoft.com/documentation/communication-manager&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Let's call the plugin which has the function as "Server Add-On" and the plugin which calls that function as "Client Add-On".&lt;BR /&gt;
The "Client Add-On" can call only those functions from "Server Add-On" which have been registered with ACAPI_Register_SupportedService function in the RegisterInterface function of the "Server Add-On". That function tells ARCHICAD that the Add-On can be called by another and it gives an identifier for the registered function. So the "Client Add-On" will be able to use that identifier (+ the MDID of the "Server Add-On") to call it.&lt;BR /&gt;
Feel free to choose any identifier. The type of the identifier is GSType (=UInt32).</description>
      <pubDate>Tue, 19 Feb 2019 09:02:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/AddOn-functions-call-back/m-p/286103#M3612</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2019-02-19T09:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: AddOn functions call back</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/AddOn-functions-call-back/m-p/286104#M3613</link>
      <description>Thanks for the documentation Reference.&lt;BR /&gt;
&lt;BR /&gt;
That explains the required hook-up  fairly well. I tried it out and it seems to work OK.&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Tue, 19 Feb 2019 11:17:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/AddOn-functions-call-back/m-p/286104#M3613</guid>
      <dc:creator>poco2013</dc:creator>
      <dc:date>2019-02-19T11:17:07Z</dc:date>
    </item>
  </channel>
</rss>

