Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
rossano_praderi
in reply to: Anonymous

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!
---------------