GetCurrentElements Method


Code Checking Parameter Service Data Get Current Elements Method

Returns the list of Ids of the current elements.

Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public IList<ElementId> GetCurrentElements()

Return Value

IList ElementId
Ids of the current elements. Contains the analytical model element to which the code checking parameter belongs.
See Also
ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →