Selects the elements.
Namespace: Autodesk.Revit.UI.Selection
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 26.1.0.0 (26.1.0.34)
Syntax
C#
public void SetElementIds( ICollection<ElementId> elementIds )
Parameters
- elementIds ICollection<ElementId>
- The ids of the elements to be selected.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |
InvalidOperationException | Changing the selection is not permitted while handling SelectionChanged Event. |