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

@jjstr8I checked and that typo is just in my post, the addin ID is properly formatted in my real code.

 

Long story short I noticed calling the sub where I try to deactivate the addin from the main Activate sub in the addin failed. While calling the sub after Inventor was started up worked. So I played around a bit and found the application events on ready event. Calling my sub from there works just fine. The only difference is instead of happening while the splash screen is up it happens after Inventor has loaded which isn't an issue for me.

 

        Private Sub m_appevents_onready() Handles m_ApplicationEvents.OnReady
            Log_User() 'This sub has the deactivate line in it
        End Sub
Check out my style edits for the Autodesk forums
pball's Autodesk Forum Style