09-16-2021
08:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
09-16-2021
08:32 AM
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
(Not an Autodesk Employee)