VB.NET API to grab correct "Inventor.Application" object

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'll start this off by saying, I'm not sure that this question is ok here, but after a LOOOOOONG time of working at it I've dead-ended...
I'm working at making a helper app in vb.net that will pull document info from Inventor documents to speed up out workflow a bit. I've been able to successfully grab the inventor app object and then pull document info, it's a relatively easy process. HOWEVER, the only way I've found to do so is to pull the application object using this line "_invApp = Marshal.GetActiveObject("Inventor.Application")", the problem being, it pulls a registered object from the Running Objects Table, and it always picks the first running instance of inventor, so if i have multiple instances open, theres no way to view documents that are open in any instance other than the first. Looking at the Running Objects Table, I notice that Inventor Documents register separately from the application itself, but they do no register with a class ID, and i cannot find a way to pull a list of open inventor documents that are registered in the Running Objects Table....
I'm looking for a way to either allow the app to determine what inventor window is currently active so that i can pull documents from a different instance when the active window changes, ... or alternatively possibly a way to pull the documents independently from the application object, also in an effort to pull info from whatever document is active, regardless of which instance of Inventor they are open in....
.... Im by no means an expert coder, but so far this is the first real hangup ive had trying to get this done. any help getting there would be clearly very appreciated. Thanks All