HasEnded Method


Transaction Group Has Ended Method

Determines whether the transaction group has ended already.

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

Return Value

Boolean
True if the transaction group has already been committed or rolled back, False otherwise.
Remarks
A transaction is ended by completing either the Commit or RollBack or Assimilate method. Another way of testing whether a transaction group has ended is by testing its current status returned from (see GetStatus ). It must be either 'TransactionStatus.Committed' or 'TransactionStatus.RolledBack'
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 →