01-25-2015
10:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
01-25-2015
10:28 AM
Hi Ian,
this is a piece of VB.net code of my addins, may this help you.
' variables declarations
Private WithEvents m_appEvents As Inventor.ApplicationEvents
' some code
Private Sub m_appEvents_OnNewDocument(ByVal DocumentObject As Inventor._Document, ByVal BeforeOrAfter As Inventor.EventTimingEnum, _ ByVal Context As Inventor.NameValueMap, ByRef HandlingCode As Inventor.HandlingCodeEnum) Handles m_appEvents.OnNewDocument Try If BeforeOrAfter = EventTimingEnum.kBefore Then ' some code End If Catch ex As Exception End Try HandlingCode = HandlingCodeEnum.kEventHandled End Sub
Bregs
Rossano Praderi
--------------------------------------
If my post answers your question, please click the "Accept as Solution"
button. This helps everyone find answers more quickly!
---------------