Remove elements from system.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)
Syntax
C#
public virtual void Remove( ICollection<ElementId> elementIds )
Parameters
- elementIds ICollection<ElementId>
- The elements to be removed from the system.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown when the input argument elements is nullptr, or any element in that collection is nullptr. |
ArgumentException | Thrown when some of the elements can't be removed, or when trying to remove all elements from the system. The element which connect to the base equipment can't be removed, |
InvalidOperationException | Thrown when the operation failed. |