ElementGetGeneratingElementIds Method |
Returns the ids of the element(s) that generated the input geometry object.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntaxpublic ICollection<ElementId> GetGeneratingElementIds(
GeometryObject geometryObject
)
Public Function GetGeneratingElementIds (
geometryObject As GeometryObject
) As ICollection(Of ElementId)
public:
ICollection<ElementId^>^ GetGeneratingElementIds(
GeometryObject^ geometryObject
)
member GetGeneratingElementIds :
geometryObject : GeometryObject -> ICollection<ElementId>
Parameters
- geometryObject GeometryObject
-
The geometry object whose generating element is requested.
Return Value
ICollectionElementId
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.
Exceptions
Remarks
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
A few relationships have the potential for returning multiple elements, including:
- Walls joining to other wall(s)
- Elements extending to roof(s)
If more than one id is returned, one of them (unspecified) is the id of the element that generated the geometry object and the others are ids of related elements. For example, if a wall A is joined to two walls B and C in a way that creates two end faces, and if this function is called for one of the two end faces, it will return the ids of walls B and C.
See Also