Inventor Vb.Net "AddIn" - Show iProperties Dialog Box & Tab Across To "Project"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Can anybody help?
I have created a Vb.Net "AddIn" that automatically creates a button that calls a sub-routine..
At present, when I press this button, the "AddIn" displays a simple message box to test if the button works.
The button calls a sub routine and works as expected.
Now....
I want to change the sub-routine, for testing purposes, so that it shows the iProperties dialog box and then tabs across to the Project tab.
The following is the code I currently have but it is not working.
Imports Inventor
Module Module10
Sub DisplayProperties()
ThisApplication = System.Runtime.InteropServices.Marshal.GetActiveObject("Inventor.Application")
ThisApplication.CommandManager.ControlDefinitions.Item("AppiPropertiesWrapperCmd").Execute2(False)
TabCount = "2" ' Properties Tab
My.Computer.Keyboard.SendKeys("{RIGHT " + TabCount + "}", True)
ThisApplication.UserInterfaceManager.DoEvents()
End Sub
End Module
Does anybody know what is wrong and rectify the error for me?
Many thanks in advance!
Darren