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

EditScope.Commit

Method
Description:
Finishes the edit scope.
Remarks:
All the changes made after starting the EditScope will be committed. Changes will be merged into one transaction.
Syntax
public void Commit(
	IFailuresPreprocessor failurePreprocessor
)
Parameters
Parameter Type Description
failurePreprocessor IFailuresPreprocessor Callback to be invoked in the beginning of failure processing.
Return Value
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null
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.