Open a document using api does not trigger onOpen event.

Open a document using api does not trigger onOpen event.

jmacapagal2CD9H
Contributor Contributor
462 Views
2 Replies
Message 1 of 3

Open a document using api does not trigger onOpen event.

jmacapagal2CD9H
Contributor
Contributor

Good day,

When I tried to a document using .net api it does not trigger or fire onOpen event. It will only file the event when opening the document from the inventor application. Does anyone know if this the expected behavior?

Thank you for answering.

0 Likes
Accepted solutions (1)
463 Views
2 Replies
Replies (2)
Message 2 of 3

earl_cody
Contributor
Contributor
Accepted solution

Hi @jmacapagal2CD9H - The events in the ApplicationEvents object should work with open document calls from the api.

https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-ApplicationEvents 

 

Here is a screenshot of a default SDK plugin template with a couple of events set:

Screenshot 2023-08-10 133700.png

 

0 Likes
Message 3 of 3

jmacapagal2CD9H
Contributor
Contributor
Thank you for your response, I've done the same thing and call m_nventorApplication.Documents.Open(FullFileName) but still not working on my side. I haven't try using the default template maybe worth to try. Thank you again.
0 Likes