Selection Property


UIDocument Selection Property

Retrieve the currently selected Elements in Autodesk Revit.

Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public Selection Selection { get; }

Property Value

Selection
Remarks
Returns an object that represents the active selection. The Selection property returns an object that represents the active selection when the command was started.
See Also
ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →