Starts the transaction group with an assigned name.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)
Syntax
C#
public TransactionStatus Start( string transGroupName )
Parameters
- transGroupName String
- Name of the group. The name will be used only for a group that is assimilated at the end.
Return Value
TransactionStatusIf started successfully, this method returns TransactionStatus.Started.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |
InvalidOperationException | Cannot modify the document for either a read-only external command is being executed, or changes to the document are temporarily disabled. -or- Transaction group cannot be started during an active transaction. -or- The Transaction group has already been started. |