Private Sub m_PartRedaktorButton_OnExecute(Context As NameValueMap) Handles m_PartRedaktorButton.OnExecute
Dim m_inventorApplication As Inventor.Application
oApp = GetObject(, "Inventor.Application")
Dim invVBA As InventorVBAMember
Dim oPartDoc As PartDocument
oPartDoc = oApp.ActiveDocument
Try
'invVBA = oApp.VBAProjects.Item(2).InventorVBAComponents.Item("Module3").InventorVBAMembers("M1")
invVBA = oPartDoc.VBAProject.InventorVBAComponents.Item("ZapuskForm").InventorVBAMembers("ZapuskRedactora")
invVBA.Execute()
Catch
MsgBox("Не нормализованная деталь!")
Exit Sub
End Try
End Sub