Revit 2025.3 API
Selection |
Returns the references that are currently selected.
Namespace: Autodesk.Revit.UI.Events
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public IList<Reference> GetReferences()
Public Function GetReferences As IList(Of Reference)
public: IList<Reference^>^ GetReferences()
member GetReferences : unit -> IList<Reference>
Return Value
IListReferenceThe collection containing the selected references.

The references can be an element or subelement in the host or a linked document.
See Also