IsTransactionBeingCommitted Method


Failures Accessor Is Transaction Being Committed Method

Checks if the transaction for which failures are processed is being committed or rolled back.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public bool IsTransactionBeingCommitted()

Return Value

Boolean
True if current transaction is being committed, false if the transaction is being rolled back.
Exceptions
Exception Condition
InvalidOperationException This FailuresAccessor is inactive (is used outside of failures processing).
Remarks
A transaction is considered as "being committed" if a caller has requested the transaction to be committed and no previous failure processing operation requested the transaction to be rolled back.
See Also
ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →