<?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 How to get module data created by another Addons? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-module-data-created-by-another-Addons/m-p/401000#M8648</link>
    <description>&lt;P&gt;If Addons A create module data name 'AA' in project file P, then can Addons B in same file project get module data name 'AA' with ACAPI_ModulData_Get()?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Sep 2024 12:19:56 GMT</pubDate>
    <dc:creator>Newbie</dc:creator>
    <dc:date>2024-09-16T12:19:56Z</dc:date>
    <item>
      <title>How to get module data created by another Addons?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-module-data-created-by-another-Addons/m-p/401000#M8648</link>
      <description>&lt;P&gt;If Addons A create module data name 'AA' in project file P, then can Addons B in same file project get module data name 'AA' with ACAPI_ModulData_Get()?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 12:19:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-module-data-created-by-another-Addons/m-p/401000#M8648</guid>
      <dc:creator>Newbie</dc:creator>
      <dc:date>2024-09-16T12:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to get module data created by another Addons?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-module-data-created-by-another-Addons/m-p/401138#M8652</link>
      <description>&lt;P&gt;I reeeeely hope its not possible to read Moduldata from another Add-On &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;"Data sections are identified uniquely by the add-on’s modul ID (&lt;A href="https://archicadapi.graphisoft.com/documentation/mdid" target="_blank" rel="noopener" data-path="../Resources/MDID.html"&gt;‘MDID’&lt;/A&gt;) and an optional modul name string. This means the one data per add-on limitation of previous versions has been dissolved.&amp;nbsp;"&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;since you cant start two add-ons with the same mdid id, this should be impossible.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i did not try it but my understanding ist, that modul data is saved in a file that is in the add-on folder. theoretically you could write your own interpreter of that file... would be a awful hack but could work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the documentation states about deleting old modul data:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL type="1"&gt;
&lt;LI&gt;&lt;EM&gt;Quit Archicad if it's running.&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;Delete or remove the add-on from its location.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;(Usually the Add-Ons folder of your Archicad installation directory.)&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;Start up Archicad, and open the Project file in Archicad that you want to erase the add-on data from.&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;Locate the "Archicad Temporary Folder"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;(It is on the Temporary Volume, which can be set through the Options/Preferences/Data Safety menu, Temporary Folder Location button (or the applying localized version of it.) Usually it's on the C: drive on Windows, or in the System Folder of the System Drive on the Macintosh.)&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;Switch into the&amp;nbsp;&lt;CODE&gt;APIData&lt;/CODE&gt;&amp;nbsp;subfolder.&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;Locate the tmp file that belongs to your add-on.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;(The corresponding file should contain the filename of your add-on at its 64th byte.)&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;Delete the located file.&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;Save the project in Archicad.&lt;/EM&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;but like i said, that would be an awful hack...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if i had to implement a datashare between two addons i would do one of the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Make that the addon looks from the outside as two addons and are in fact just one apx&lt;/P&gt;
&lt;P&gt;2. use the communication manager to send data between the two add-ons.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Important: Moduldata ist legacy. You should use AddOnObjects!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;from the documentation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;"This is a legacy technology, please use Add-On Objects instead."&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Old:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://graphisoft.github.io/archicad-api-devkit/group___modul_data.html#details" target="_blank"&gt;https://graphisoft.github.io/archicad-api-devkit/group___modul_data.html#details&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;New:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://graphisoft.github.io/archicad-api-devkit/group___add_on_object.html" target="_blank" rel="noopener"&gt;https://graphisoft.github.io/archicad-api-devkit/group___add_on_object.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2023 05:46:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-module-data-created-by-another-Addons/m-p/401138#M8652</guid>
      <dc:creator>Joel Buehler</dc:creator>
      <dc:date>2023-10-06T05:46:45Z</dc:date>
    </item>
  </channel>
</rss>

