Revit 2025 API
SelectionSet |
Selects the references. The references can be an element or a subelement in the host or a linked document.
Namespace: Autodesk.Revit.UI.Selection
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public void SetReferences( IList<Reference> references )
Public Sub SetReferences ( references As IList(Of Reference) )
public: void SetReferences( IList<Reference^>^ references )
member SetReferences : references : IList<Reference> -> unit
Parameters

Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |
InvalidOperationException | Changing the selection is not permitted while handling SelectionChanged Event. |

This function will select the specified references and update the UI.
See Also