Revit 2025 API
Analytical |
Returns ids of the elements which are in association with the element with the given ElementId.
Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public ISet<ElementId> GetAssociatedElementIds( ElementId elementId )
Public Function GetAssociatedElementIds ( elementId As ElementId ) As ISet(Of ElementId)
public: ISet<ElementId^>^ GetAssociatedElementIds( ElementId^ elementId )
member GetAssociatedElementIds : elementId : ElementId -> ISet<ElementId>
Parameters
- elementId ElementId
- Element id for which we want to get the associated elements.
Return Value
ISetElementIdIds of the associated elements.

Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |
See Also