Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
How to list elements that are only visible in a view (ex. elevation or section)?
I tried :
FilteredElementCollector allElementsInView = new FilteredElementCollector(Doc, view.Id);
IList<Element> elementsInView = allElementsInView.ToElements();
However the result includes elements that are not visible in the view, as an example, if the target is to filter all walls that appear in elevations, the return result from filtering also includes walls that are hidden behind the front (Elevation) walls.
Is there a way to obtain only the elements that "appear" in the view ?
Thanks.
Solved! Go to Solution.