Is there a way for an addon to unload itself?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-07-31
04:08 AM
- last edited on
2021-09-15
10:30 AM
by
Noemi Balogh
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?
Solved! Go to Solution.
- Labels:
-
Add-On (C++)
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-08-13 05:29 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-07-31 04:16 AM
This will allow you to load or un-load add-ons without actually removing the files.
Or close Archicad and you should have full control of the actual file.
Barry.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-07-31 05:47 AM
Barry wrote:Is there an API to unload it?
Use the Add-on Manager in Archicad.
This will allow you to load or un-load add-ons without actually removing the files.
Or close Archicad and you should have full control of the actual file.
Barry.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-07-31 06:00 AM
scandi wrote:
Is there an API to unload it?
Try the Add-on Manager - it is part of Archicad.
It may depend on the add-on you are trying to stop.
If it can't be done here you have to close Archicad and delete or move the file from the add-on folder manually.
Barry.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-07-31 06:07 AM
Barry wrote: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?
scandi wrote:
Is there an API to unload it?
Try the Add-on Manager - it is part of Archicad.
add_on_manager_2.jpg
It may depend on the add-on you are trying to stop.
If it can't be done here you have to close Archicad and delete or move the file from the add-on folder manually.
Barry.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-07-31 07:04 AM
scandi wrote:
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?
Yes, sorry I missed that this was in the developer's forum.
Barry.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-07-31 10:13 AM
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.
Central Innovation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-07-31 11:15 AM
Ralph wrote:OK. Thank you.
I don't know any way to do this. Given the way Archicad calls the sequence ofCheckEnvironment, RegisterInterfaceand Initializeduring startup, I suspect you wouldn't be able to integrate the update into an active session anyway.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-08-13 05:29 AM