<?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 Is there a way for an addon to unload itself? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Is-there-a-way-for-an-addon-to-unload-itself/m-p/266828#M2355</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;Hi guys.&lt;BR /&gt;&lt;BR /&gt;I was looking to unload the addon itself. But the apx file is locked while the addon is loaded. How could I unload the addon in that case?&lt;/DIV&gt;</description>
    <pubDate>Wed, 15 Sep 2021 08:30:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-09-15T08:30:14Z</dc:date>
    <item>
      <title>Is there a way for an addon to unload itself?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Is-there-a-way-for-an-addon-to-unload-itself/m-p/266828#M2355</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi guys.&lt;BR /&gt;&lt;BR /&gt;I was looking to unload the addon itself. But the apx file is locked while the addon is loaded. How could I unload the addon in that case?&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 Sep 2021 08:30:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Is-there-a-way-for-an-addon-to-unload-itself/m-p/266828#M2355</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-15T08:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way for an addon to unload itself?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Is-there-a-way-for-an-addon-to-unload-itself/m-p/266829#M2356</link>
      <description>Use the Add-on Manager in Archicad.&lt;BR /&gt;
This will allow you to load or un-load add-ons without actually removing the files.&lt;BR /&gt;
&lt;BR /&gt;
Or close Archicad and you should have full control of the actual file.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Fri, 31 Jul 2020 02:16:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Is-there-a-way-for-an-addon-to-unload-itself/m-p/266829#M2356</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2020-07-31T02:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way for an addon to unload itself?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Is-there-a-way-for-an-addon-to-unload-itself/m-p/266830#M2357</link>
      <description>&lt;BLOCKQUOTE&gt;Barry wrote:&lt;BR /&gt;
Use the Add-on Manager in Archicad.&lt;BR /&gt;
This will allow you to load or un-load add-ons without actually removing the files.&lt;BR /&gt;
&lt;BR /&gt;
Or close Archicad and you should have full control of the actual file.&lt;BR /&gt;
&lt;BR /&gt;
Barry.
&lt;/BLOCKQUOTE&gt;

Is there an API to unload it?</description>
      <pubDate>Fri, 31 Jul 2020 03:47:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Is-there-a-way-for-an-addon-to-unload-itself/m-p/266830#M2357</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-31T03:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way for an addon to unload itself?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Is-there-a-way-for-an-addon-to-unload-itself/m-p/266831#M2358</link>
      <description>&lt;BLOCKQUOTE&gt;scandi wrote:&lt;BR /&gt;
Is there an API to unload it?
&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
Try the Add-on Manager - it is part of Archicad.&lt;BR /&gt;
&lt;BR /&gt;



&lt;BR /&gt;
It may depend on the add-on you are trying to stop.&lt;BR /&gt;
If it can't be done here you have to close Archicad and delete or move the file from the add-on folder manually.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Fri, 31 Jul 2020 04:00:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Is-there-a-way-for-an-addon-to-unload-itself/m-p/266831#M2358</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2020-07-31T04:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way for an addon to unload itself?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Is-there-a-way-for-an-addon-to-unload-itself/m-p/266832#M2359</link>
      <description>&lt;BLOCKQUOTE&gt;Barry wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;scandi wrote:&lt;BR /&gt;
Is there an API to unload it?
&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
Try the Add-on Manager - it is part of Archicad.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
add_on_manager_2.jpg&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
It may depend on the add-on you are trying to stop.&lt;BR /&gt;
If it can't be done here you have to close Archicad and delete or move the file from the add-on folder manually.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Barry.
&lt;/BLOCKQUOTE&gt;

Thank you! Maybe I haven't explain it clearly: I am writing an addon which should update itself. However, I couldn't find an api to do that. Is there a way to achieve that goal using the given apis?</description>
      <pubDate>Fri, 31 Jul 2020 04:07:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Is-there-a-way-for-an-addon-to-unload-itself/m-p/266832#M2359</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-31T04:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way for an addon to unload itself?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Is-there-a-way-for-an-addon-to-unload-itself/m-p/266833#M2360</link>
      <description>&lt;BLOCKQUOTE&gt;scandi wrote:&lt;BR /&gt;
Thank you! Maybe I haven't explain it clearly: I am writing an addon which should update itself. However, I couldn't find an api to do that. Is there a way to achieve that goal using the given apis?
&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
Yes, sorry I missed that this was in the developer's forum.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Fri, 31 Jul 2020 05:04:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Is-there-a-way-for-an-addon-to-unload-itself/m-p/266833#M2360</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2020-07-31T05:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way for an addon to unload itself?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Is-there-a-way-for-an-addon-to-unload-itself/m-p/266834#M2361</link>
      <description>I don't know any way to do this. Given the way Archicad calls the sequence of &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;CheckEnvironment&lt;E&gt;&lt;/E&gt;, &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;RegisterInterface&lt;E&gt;&lt;/E&gt; and &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;Initialize&lt;E&gt;&lt;/E&gt; during startup, I suspect you wouldn't be able to integrate the update into an active session anyway.&lt;BR /&gt;
&lt;BR /&gt;
We've written our installer to check if the target version of Archicad is running and ask them to quit first if it is. In the current application structure, I don't think self-updating is possible.</description>
      <pubDate>Fri, 31 Jul 2020 08:13:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Is-there-a-way-for-an-addon-to-unload-itself/m-p/266834#M2361</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2020-07-31T08:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way for an addon to unload itself?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Is-there-a-way-for-an-addon-to-unload-itself/m-p/266835#M2362</link>
      <description>&lt;BLOCKQUOTE&gt;Ralph wrote:&lt;BR /&gt;
I don't know any way to do this. Given the way Archicad calls the sequence of &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;CheckEnvironment&lt;E&gt;&lt;/E&gt;, &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;RegisterInterface&lt;E&gt;&lt;/E&gt; and &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;Initialize&lt;E&gt;&lt;/E&gt; during startup, I suspect you wouldn't be able to integrate the update into an active session anyway.&lt;BR /&gt;
&lt;BR /&gt;
We've written our installer to check if the target version of Archicad is running and ask them to quit first if it is. In the current application structure, I don't think self-updating is possible.
&lt;/BLOCKQUOTE&gt;

OK. Thank you.</description>
      <pubDate>Fri, 31 Jul 2020 09:15:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Is-there-a-way-for-an-addon-to-unload-itself/m-p/266835#M2362</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-31T09:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way for an addon to unload itself?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Is-there-a-way-for-an-addon-to-unload-itself/m-p/266836#M2363</link>
      <description>I have found a way: rename the apx. As you can see, ARCHICAD will lock the apx to prevent it from being deleted while running but it WON'T prevent it from being renaming. You can rename it into something like *.apx.old. When ARCHICAD restart, it won't load the *.apx.old but the new apx you download from the server last time. Remember to rename it at the time when ARCHICAD quits.</description>
      <pubDate>Thu, 13 Aug 2020 03:29:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Is-there-a-way-for-an-addon-to-unload-itself/m-p/266836#M2363</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-13T03:29:19Z</dc:date>
    </item>
  </channel>
</rss>

