4.8 Working With Transactions
Using Transactions is easy and you won't get very far without them!
Revit is a Database
Dynamo's TransactionManager
#Boilerplate Code
#To open a new transaction, we need to use the TransactionManager class
#Which takes the current document's handle as an argument
TransactionManager.Instance.EnsureInTransaction(doc)
#The following method will close the transaction and confirm any changes
#made to the Revit document's database.
TransactionManager.Instance.TransactionTaskDone()Structuring Transactions
Last updated
Was this helpful?