Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
I'm trying to filter models in the active view
var wallList = new FilteredElementCollector(doc, doc.ActiveView.Id).OfClass(typeof(Wall)).ToList();
It works well in the local document.However, when the model is in revitlinkinstance, it does not work
new FilteredElementCollector(linkDoc, doc.ActiveView.Id).OfClass(typeof(Wall)).ToList();
This throws an exception.
So, how do I filter the models in the active view in revitlinkinstance?
Thank you!
Solved! Go to Solution.