How to Solve NameError: name 'TransactionManager' is not defined -- RevitServices
Solution: Import the 'TransactionManager' module
To Solve the error, add the following line to the top of your code.
from RevitServices.Transactions import TransactionManager
For more information:
Python RevitServices TransactionManager