12-05-2019
04:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
12-05-2019
04:01 PM
Hello pball,
@pball wrote:I would like a DLL addin to be able to unload it self. I found some code that works running it from VBA but not from inside my addin. Is is possible for an addin to unload itself?
ThisApplication.ApplicationAddIns.ItemById("{idstringhere]").Deactivate()
I got same result with c# now. It seems that the add-ins cannot be disabled by themselves.
Note that the add-in is only disabled by Deactivate() and the dll isn't unloaded.
(To unload the dll, you must restart Inventor.)
=====
Hideo Yamada