Creates an instance of the DeleteElements resolution.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)
Syntax
C#
public static FailureResolution Create( Document document, ISet<ElementId> ids )
Parameters
- document Document
- The document which owns the elements to delete.
- ids ISet<ElementId>
- The ids of the elements that will be deleted when this resolution is chosen.
Return Value
FailureResolutionThe instance of the DeleteElements resolution.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The input ids is empty or contains an invalid element id. |
ArgumentNullException | A non-optional argument was null |