Inventor 2020 Event Watcher: "OnDocumentChange" event not working

Inventor 2020 Event Watcher: "OnDocumentChange" event not working

DRoam
Mentor Mentor
577 Views
2 Replies
Message 1 of 3

Inventor 2020 Event Watcher: "OnDocumentChange" event not working

DRoam
Mentor
Mentor

For some reason, the "OnDocumentChange" event watcher is not working. From what I can tell from debugging, it's because the "OnDocumentChange" event is not being heard at all by the Event Watcher, while other ApplicationEvents are.

 

Can someone check and see if they see the same issue in 2020?

 

Any idea how to fix this issue?

0 Likes
578 Views
2 Replies
Replies (2)
Message 2 of 3

DRoam
Mentor
Mentor

Update:

 

Looks like I'm getting the following message in the Output window with each document change:

Exception thrown: 'System.ArgumentException' in mscorlib.dll
Exception thrown: 'System.ArgumentException' in mscorlib.dll

It shows up twice, so I assume it's being thrown once with the "before" event and once with the "after" event.

 

Did a search for this error and didn't find much. Hopefully it's a useful clue for someone smarter than me.....

0 Likes
Message 3 of 3

JelteDeJong
Mentor
Mentor

did you see this post? could be the same problem.

https://forums.autodesk.com/t5/inventor-customization/ondocumentchange-event-not-firing/m-p/4485795/...

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

0 Likes