Retrieve the currently selected Elements in Autodesk Revit.
Namespace: Autodesk.Revit.UIAssembly: RevitAPIUI (in RevitAPIUI.dll) Version: 21.0.0.0 (21.1.1.109)
Syntax
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.