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

OK.  So, from what I have gathered from that other forum topic, the code you have posted here is not complete yet, and you will be using this code above to run the code routine shown within that other forum post when this event it triggered, by running it between opening and closing the 'active edit document'?  It's a bit confusing, but OK.  But just so you know, if you have opened a document as not visible, then you can use Document.ReleaseReference instead of Document.Close, then at some point, it may also be good to use ThisApplication.Documents.CloseAll(True), where True specifies to only close all unreferenced documents being held in memory, as a clean-up tool.  Good luck.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)