|  Selection   Set  | 
 Selects the elements. 
 Namespace: Autodesk.Revit.UI.Selection
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 25.0.0.0 (25.0.0.0)
 Syntax
 Syntax  Parameters
- elementIds ICollection ElementId
- The ids of the elements to be selected.
 Exceptions
 Exceptions  | Exception | Condition | 
|---|---|
| ArgumentNullException | A non-optional argument was null | 
| InvalidOperationException | Changing the selection is not permitted while handling SelectionChanged Event. | 
 Remarks
 Remarks   This function will select the specified elements within the project and update the UI. See  SetReferences  for more selection options. 
  See Also
 See Also