Message 1 of 10
Inventor Vb.Net "AddIn" - Show "oDoc.Displayname" Using A Button Click
- 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 simple sub-routine.
I want to change the sub-routine, for testing purposes, so that it shows the oDoc.Displayname.
The following is the code I currently have but it is not working.
Imports Inventor
Module Module12
Sub ControlPanel()
Dim invApp As Inventor.Application = Nothing
invApp = GetObject(, "Inventor.Application")
oDoc = oInvApp.ActiveDocument
Msgbox(oDoc.Displayname)
End Sub
End Module
Does anybody know what is wrong and rectify the error for me?
Many thanks in advance!
Darren