Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

You can check the Count property of the drawing's AllReferencedDocuments property to see if there is more than one.  If it is zero, there is no 'model' document yet.  If it is one, then you can just get Item(1) as the model document.  If it is more than one, then you can just loop through each document in the drawing's AllReferencedDocuments collection.  That way you avoid having to loop through each sheet and/or each view on each sheet.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)