RVTDocs.com

AppearanceAssetEditScope.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. If the appearance asset element is used in one or more materials, they will be updated to match any changes made. Open views may not redraw after changes. View update can be forced with the input argument, but doing so can be an expensive operation. Consider using false if immediate update is not needed or if multiple calls to this method are used in a loop.
Syntax
public void Commit(
	bool updateOpenViews
)
Parameters
Parameter Type Description
updateOpenViews Boolean When true, force update of the open views.
Return Value
Exceptions
Exception Condition
InvalidOperationException EditScope is not active. EditScope can only be committed or cancelled when it is active. -or- EditScope cannot be closed, there is no opened transaction. -or- The editable asset is not valid.