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: op_thorsager

OK.  I understand the situation better now.  Things get fairly complicated when there is more than one 'model' being referenced in one drawing file, because a lot of the iLogic snippets were designed around there being just one.  I have another idea though that might help with that scenario.  What about getting DrawingDocument.ReferencedDocuments collection to a variable (not DrawingDocument.AllReferencedDocuments, because that would go too deep).  Then simply loop through those referenced documents, instead of looping every sheet &/or every view, then extracting referenced document from the views.  It just seems a bit more efficient that way, and no need to keep track if you have worked with that model before or not, because each would be unique.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)