SelectionGetReferences Method

Returns the references that are currently selected.

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

Return Value

IListReference
The collection containing the selected references.
Remarks
The references can be an element or subelement in the host or a linked document.
See Also