Revit 2025 API
Selection |
Adds a single ElementId to the filter's set.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public void AddSingle( ElementId id )
Public Sub AddSingle ( id As ElementId )
public: void AddSingle( ElementId^ id )
member AddSingle : id : ElementId -> unit
Parameters
- id ElementId
- The ElementId to add.

Exception | Condition |
---|---|
ArgumentException | Invalid ElementId |
ArgumentNullException | A non-optional argument was null |
See Also