Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
HideoYamada
in reply to: pball

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.)

 

=====

Freeradical

 Hideo Yamada

 

=====
Freeradical
 Hideo Yamada
https://www.freeradical.jp