Insertion Point Within BoundingBox
Overview
The BoundingBoxContainsPointFilter()
starts from the origin point of an element and detects which elements are located inside it.
Example
-
Get the element and its insertion point:
Element = UnwrapElement(IN[0])
Point = Element.Location.Point -
Filter elements by insertion point:
Filter = BoundingBoxContainsPointFilter(Point)
elems = FilteredElementCollector(doc, doc.ActiveView.Id).WherePasses(Filter).ToElements()
Note
This filter allows defining a tolerance and/or inverting it with a Boolean.