Inventor instance issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
I am having an issue with Inventor after a recent service pack update. Previously, I could run my application and it would start the correct inventor version (2015). If inventor was already running, it would connect to it. This is managed with this code-
Try _invApp = Marshal.GetActiveObject("Inventor.Application") Catch ex As Exception Try Dim invAppType As Type = _ GetTypeFromProgID("Inventor.Application") _invApp = CreateInstance(invAppType) _invApp.Visible = True 'Note: if you shut down the Inventor session that was started 'this(way) there is still an Inventor.exe running. We will use 'this Boolean to test whether or not the Inventor App will 'need to be shut down. _started = True Catch ex2 As Exception MsgBox(ex2.ToString()) MsgBox("Unable to get or start Inventor") End Try End Try Try m_oServer = New Inventor.ApprenticeServerComponent AddInventorPath() Catch ex As Exception End Try
Now, it is doing 2 irregular things-
1. even though I have no reference to inventor 2017, it starts inventor 2017 and not 2015. I am referencing V19 interop only
2. if Inventor is running, a brand new instance of inventor is created with NO SETTINGS. There are no projects available either. its like a brand new install version..
How can i
A. get the correct version I need to open
B. Stop this new instance being created and hook into the currently open inventor version?
Cheers
Nacho
Nacho
Automation & Design Engineer
Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.