- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I have a question which shouild be very simple for programmers...
I create an add-in with VB .Net 2012, which use a form. When I click on a button, I launch a sub in another module.
How can I have, in this sub, the equivalent of ThisApplication in VBA ? I think I have to get the active Inventor, but I missed something... For the moment, when I debug, the add-in ends on " m_inventorApplication = addInSiteObject.Application".
Sub renum(ByVal direction AsString)
Dim m_inventorApplication As Inventor.Application
Dim oDoc AsDrawingDocument
m_inventorApplication = addInSiteObject.Application
oDoc = m_inventorApplication.ActiveDocument
'.............
End Sub
PrivateFunction addInSiteObject() AsObject
ThrowNewNotImplementedException
End Function
Solved! Go to Solution.