<?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 Question about ACAPI_SetPreferences and IO::Memory in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Question-about-ACAPI-SetPreferences-and-IO-Memory/m-p/361872#M1252</link>
    <description>&lt;P&gt;I implemented in my addon the method shown in the&amp;nbsp; maze generator part 3 tutorial of the API blog.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have several dialogs&amp;nbsp; in my addon so I tried implementing&amp;nbsp; a set of settings&amp;nbsp; and preferences handling for each of my dialogs and palettes.&lt;/P&gt;&lt;P&gt;However&amp;nbsp; this didn't quite work. Even though each dialog&amp;nbsp; use&amp;nbsp; their own functions with different names when I go from one dialog to the other&amp;nbsp; they seem to overwrite each others settings.&lt;/P&gt;&lt;P&gt;Using only on set of settings and preferences handling common to all dialogs and palettes fix the issue but I'll end up with hundreds of variables that get handled for no reason if i use a dialog that only needs a few of them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question&amp;nbsp; is:&lt;/P&gt;&lt;P&gt;Are we&amp;nbsp; limited to&amp;nbsp; one Memory channel&amp;nbsp; and set of settings per addon ?&amp;nbsp; Or is there a way to get several?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried&amp;nbsp; the method were each dialog has its own set to limit the number of settings but the only way to get everything working at the moment is to use only one.&lt;/P&gt;</description>
    <pubDate>Sun, 13 Nov 2022 10:09:26 GMT</pubDate>
    <dc:creator>julienK</dc:creator>
    <dc:date>2022-11-13T10:09:26Z</dc:date>
    <item>
      <title>Question about ACAPI_SetPreferences and IO::Memory</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Question-about-ACAPI-SetPreferences-and-IO-Memory/m-p/361872#M1252</link>
      <description>&lt;P&gt;I implemented in my addon the method shown in the&amp;nbsp; maze generator part 3 tutorial of the API blog.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have several dialogs&amp;nbsp; in my addon so I tried implementing&amp;nbsp; a set of settings&amp;nbsp; and preferences handling for each of my dialogs and palettes.&lt;/P&gt;&lt;P&gt;However&amp;nbsp; this didn't quite work. Even though each dialog&amp;nbsp; use&amp;nbsp; their own functions with different names when I go from one dialog to the other&amp;nbsp; they seem to overwrite each others settings.&lt;/P&gt;&lt;P&gt;Using only on set of settings and preferences handling common to all dialogs and palettes fix the issue but I'll end up with hundreds of variables that get handled for no reason if i use a dialog that only needs a few of them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question&amp;nbsp; is:&lt;/P&gt;&lt;P&gt;Are we&amp;nbsp; limited to&amp;nbsp; one Memory channel&amp;nbsp; and set of settings per addon ?&amp;nbsp; Or is there a way to get several?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried&amp;nbsp; the method were each dialog has its own set to limit the number of settings but the only way to get everything working at the moment is to use only one.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2022 10:09:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Question-about-ACAPI-SetPreferences-and-IO-Memory/m-p/361872#M1252</guid>
      <dc:creator>julienK</dc:creator>
      <dc:date>2022-11-13T10:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Question about ACAPI_SetPreferences and IO::Memory</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Question-about-ACAPI-SetPreferences-and-IO-Memory/m-p/361948#M1253</link>
      <description>&lt;P&gt;Hi Julien,&lt;BR /&gt;&lt;BR /&gt;To my understanding, there's only one channel for PREFERENCE settings per Add-On as you've discovered.&lt;BR /&gt;&lt;BR /&gt;But you can store several independent settings (e.g. per Dialog) into the project itself.&lt;BR /&gt;The difference is briefly explained in the beginning of the tutorial you mentioned (&lt;A href="https://archicadapi.Graphisoft.com/Archicad-maze-generator-add-on-tutorial-part-3" target="_blank" rel="noopener"&gt;Archicad Maze Generator Add-On Tutorial; Part 3&lt;/A&gt;). It's mentioned there, that the data stored with the project itself will be uploaded to the teamwork server, which could be weird for dialog settings. But there are also client-only AddOn-Objects to store data with the project. Check out: &lt;A href="https://archicadapi.Graphisoft.com/documentation/addonobject-manager" target="_blank" rel="noopener"&gt;https://archicadapi.Graphisoft.com/documentation/addonobject-manager&lt;/A&gt; and specifically&amp;nbsp;&lt;A href="https://archicadapi.Graphisoft.com/documentation/acapi_addonobject_createclientonlyobject" target="_blank" rel="noopener"&gt;https://archicadapi.Graphisoft.com/documentation/acapi_addonobject_createclientonlyobject&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;Another idea would be, to use the preference data but use the Input/Output channels more like random access memory. I think the memory channels support offsets. So you wouldn't need to handle variables not related to the current context.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Bernd&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 09:24:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Question-about-ACAPI-SetPreferences-and-IO-Memory/m-p/361948#M1253</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2022-11-14T09:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Question about ACAPI_SetPreferences and IO::Memory</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Question-about-ACAPI-SetPreferences-and-IO-Memory/m-p/361955#M1254</link>
      <description>&lt;P&gt;Thanks a lot Bernd, I'll look into that.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 11:01:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Question-about-ACAPI-SetPreferences-and-IO-Memory/m-p/361955#M1254</guid>
      <dc:creator>julienK</dc:creator>
      <dc:date>2022-11-14T11:01:45Z</dc:date>
    </item>
  </channel>
</rss>

