- 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Ruth Steed
Inventor Development Team
Autodesk, Inc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Can i define this in another module and will it work in the same way or is it necessary to parse this through to the new module?
Currently trying and failing with this;
Public Shared addInSiteObject As Inventor.ApplicationAddInSite
Private Sub Export(sender As Object, e As EventArgs) Handles MyBase.Load
System.Windows.Forms.Application.EnableVisualStyles()
Try
InvApp = addInSiteObject.Application
Dim oDoc As AssemblyDocument = InvApp.ActiveEditDocument
Catch
MsgBox("64", 64, Title)
Return
End Try
...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Ruth Steed
Inventor Development Team
Autodesk, Inc.