Inventor Vb.Net "AddIn" dll - ApplicationEvents_OnSaveDocument Executing Twice???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Can anybody help?
I have created a simple Vb.Net "AddIn" dll for Inventor that runs whenever the Inventor "SAVE" button is pressed.
For testing purposes only, this "AddIn" shows a message box saying "HELLO WORLD".
This is the Vb.Net code that I am using....
Private Sub ApplicationEvents_OnSaveDocument(ByVal DocumentObject As Inventor._Document, ByVal BeforeOrAfter As Inventor.EventTimingEnum, ByVal Context As Inventor.NameValueMap, ByRef HandlingCode As Inventor.HandlingCodeEnum) Handles ApplicationEvents.OnSaveDocument
If BeforeOrAfter = EventTimingEnum.kAfter Then
MsgBox("HELLO WORLD")
End If
End Sub
When I press the Inventor "SAVE" button the above routing executes twice, eg the message box gets shown twice.
Is this a bug, if not, does anybody know how I can stop the sub routine from executing twice?
Many thanks in advance!
Darren