RVTDocs.com
Namespace: Autodesk.Revit.DB Class: EditScope

EditScope.Cancel

Method
Description:
Cancels the edit scope.
Remarks:
All the changes made after starting the EditScope will be rolled back.
Syntax
public void Cancel()
Exceptions
Exception Condition
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.