Message 1 of 4

Not applicable
11-06-2015
07:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
Solved! Go to Solution.