Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I would like to assign a specific instance of referenced document in a drawing to a variable via
the display name. I can get the same results with a loop like the one below.
Dim oDrawDoc As DrawingDocument = ThisDoc.Document Dim oDoc As Document
For Each oDoc In oDrawDoc.ReferencedDocuments
If oDoc.DisplayName = "Assembly1"
But I can't seem to assign it explicitly as implied here. oDoc = oDrawDoc.ReferencedDocuments.DisplayName("Assembly1")
Is there a way to do this? Is this a syntax issue or something more? Thanks
Solved! Go to Solution.