12-21-2022
06:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
12-21-2022
06:24 AM
As far as I know, is the entire tutorial in pure VB.net. So I'm not sure what you would like to see.
If you want to create a standalone application then you might want to have a look at the 3e part of the tutorial "Debugging without restating Inventor".
- Creating an Inventor Addin
- Adding icons to your buttons
- Debugging without restarting Inventor
- Adding a form to your addin
There I create a application that connects to Inventor and runs as a standalone application. Here are the basics for getting the Inventor object. (It will start Inventor if it is not started jet.)
Dim ThisApplication As Inventor.Application
Try
ThisApplication = Runtime.InteropServices.Marshal.GetActiveObject("Inventor.Application")
Catch ex As Exception
Dim oType As Type = Type.GetTypeFromProgID("Inventor.Application")
ThisApplication = System.Activator.CreateInstance(oType)
ThisApplication.Visible = True
End Try
Dim ThisDoc As Document = ThisApplication.ActiveDocument
Jelte de Jong
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.
Blog: hjalte.nl - github.com