| Revit 2022 API |
| EditScope..::..Cancel Method |
| EditScope Class See Also |
Cancels the edit scope.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 22.0.0.0 (22.1.0.0)
Since:
2014
Syntax
| C# |
|---|
public void Cancel() |
| Visual Basic |
|---|
Public Sub Cancel |
| Visual C++ |
|---|
public: void Cancel() |
Remarks
All the changes made after starting the EditScope will be rolled back.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions..::..InvalidOperationException | EditScope is not active. EditScope can only be committed or cancelled when it is active. -or- EditScope cannot be closed, for there is a transaction or transaction group still open in the document. |