Message 1 of 10
How FileteredElementCollector of View works?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Can someone please explain how the FilteredElementCollector of the view works?
var doc = this.ActiveUIDocument.Document; var fec = new FilteredElementCollector(doc, doc.activeView.Id);
// Does it collect all the elements based on view bounding box or view range or View level id?????
It seems to me that the Filter also collects the elements from the view below even though the view range of the active view is set to the default like this:
Level heights
So the "fec" sometimes outputs wrong elements which doesn't belong to this view.