Checks if resolution of the failures by deleting given collection of elements is permitted.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)
Syntax
C#
public bool IsElementsDeletionPermitted( IList<ElementId> idsToDelete, out string reason )
Parameters
- idsToDelete IList<ElementId>
- The Ids of elements to be deleted.
- reason String%
- A localized string explaining reason why the elements cannot be deleted.
Return Value
BooleanTrue if resolution of the failures by deleting given elements is permitted
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |
InvalidOperationException | This FailuresAccessor is inactive (is used outside of failures processing). |