- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Dear colleagues,
I'd be surprised if this question hasn't been answered yet in this forum. Yet, I wasn't able to find the exact answer to what I'm looking for. So, in first place, excuse the redundancy if that's the case.
I want to obtain the linked revit models that are linked to an open document. I've used the following line
DocumentSet docs = commandData.Application.ActiveUIDocument.Document.Application.Documents;
to retrieve a DocumentSet containing all the documents open in revit. Then I iterated through the documents and used the Property doc.IsLinked to check if that document is linked.
However, if I have two models open in revit and both have linked models, my code will return the linked models of both files. How can I make sure that only linked files from my document get returned?
Solved! Go to Solution.