Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Anonymous
765 Views, 3 Replies

get addin to run in multiple instances of inventor

I've just converted a standalone application in to an inventor addin, I want to be able to run this addin in multiple instances of Inventor on the same computer. However when the app is running and I open the app in another instance, the original crashes and the new instance doesn't function correctly, I think the new instance of the app is refering to the original instance of Inventor and it might be somthing to do with the way i'm using the getactiveobject function. Should the below give we what I want? Or is there an alternative to getactiveobject.

 

        Try
            ' Attempt to get a reference to a running instance of Inventor
            InvApp = Marshal.GetActiveObject("Inventor.Application")


            Dim oDoc As AssemblyDocument = InvApp.ActiveEditDocument
        Catch