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

The DocumentsEnumerator Object can't be set to a single document from an open part file.  You could use the Application.Documents.VisibleDocuments, but you would then have to remove those you don't want if more than 1 document is open. 

 

Alternatively, if you use an ObjectCollection Object , then you could fill it with AllReferencedDocuments from assembly files or with the "odoc" by itself if it is a part.