Element.GetGeneratingElementIds
Description:
Returns the ids of the element(s) that generated the input geometry object.
Returns the ids of the element(s) that generated the input geometry object.
Remarks:
This function supports many different types of relationships among elements. Most of these relationships will return a single element, for example:
This function supports many different types of relationships among elements. Most of these relationships will return a single element, for example:
- Window and door cutting walls
- Openings cutting hosts
- Face splitting faces
- Wall sweep or reveal traversing wall
- Walls joining to other wall(s)
- Elements extending to roof(s)
public ICollection<ElementId> GetGeneratingElementIds(
GeometryObject geometryObject
)
-
geometryObjectThe geometry object whose generating element is requested.
Return Value
ICollection<ElementId>
The id(s) of the element(s) that generated (or may have generated) the given geometry object. Empty if no generating elements are found. If the set contains just one id, it is the id of the element that generated the geometry object.
-
The input geometryObject is invalid and so cannot be used to obtain the generating element ids.
-
A non-optional argument was null