GetReferences Method


Selection Changed Event Args Get References Method

Returns the references that are currently selected.

Namespace: Autodesk.Revit.UI.Events
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public IList<Reference> GetReferences()

Return Value

IList Reference
The collection containing the selected references.
Remarks
The references can be an element or subelement in the host or a linked document.
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 →