<?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: How to Preserve Global Variables in an Archicad 27 Add-On? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-Preserve-Global-Variables-in-an-Archicad-27-Add-On/m-p/655991#M10214</link>
    <description>&lt;P&gt;I really appreciate your help!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;GSErrCode Initialize (void){
//...
ACAPI_KeepInMemory(true);
return(err);
}

static GSErrCode MenuCommandHandler (const API_MenuParams *menuParams)
{
ACAPI_KeepInMemory(true);
//...
}&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 19 Mar 2025 15:51:31 GMT</pubDate>
    <dc:creator>nishida_jp</dc:creator>
    <dc:date>2025-03-19T15:51:31Z</dc:date>
    <item>
      <title>How to Preserve Global Variables in an Archicad 27 Add-On?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-Preserve-Global-Variables-in-an-Archicad-27-Add-On/m-p/655321#M10210</link>
      <description>&lt;P&gt;I'm developing an add-on using the API in Archicad 27 with Visual C++ 2019 on Windows 10.&lt;/P&gt;&lt;P&gt;The add-on uses global variables to store calculated data in memory. When I run the add-on from the menu, the calculated results are stored in the add-on's memory. However, when I open the menu and run the add-on again, the previously stored values are lost.&lt;/P&gt;&lt;P&gt;How can I prevent this from happening?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 03:47:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-Preserve-Global-Variables-in-an-Archicad-27-Add-On/m-p/655321#M10210</guid>
      <dc:creator>nishida_jp</dc:creator>
      <dc:date>2025-03-17T03:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to Preserve Global Variables in an Archicad 27 Add-On?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-Preserve-Global-Variables-in-an-Archicad-27-Add-On/m-p/655375#M10211</link>
      <description>&lt;P&gt;The default behaviour is for Archicad to unload an add-on from memory when it isn't in use, which will cause any data held by the add-on to be lost. You can prevent an add-on from being unloaded by calling &lt;EM&gt;ACAPI_KeepInMemory(true)&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 12:12:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-Preserve-Global-Variables-in-an-Archicad-27-Add-On/m-p/655375#M10211</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2025-03-17T12:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to Preserve Global Variables in an Archicad 27 Add-On?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-Preserve-Global-Variables-in-an-Archicad-27-Add-On/m-p/655991#M10214</link>
      <description>&lt;P&gt;I really appreciate your help!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;GSErrCode Initialize (void){
//...
ACAPI_KeepInMemory(true);
return(err);
}

static GSErrCode MenuCommandHandler (const API_MenuParams *menuParams)
{
ACAPI_KeepInMemory(true);
//...
}&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 19 Mar 2025 15:51:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-Preserve-Global-Variables-in-an-Archicad-27-Add-On/m-p/655991#M10214</guid>
      <dc:creator>nishida_jp</dc:creator>
      <dc:date>2025-03-19T15:51:31Z</dc:date>
    </item>
  </channel>
</rss>

