Gerhard.P
(Gerhard)
#1
Hello pyRevit Community 
When using pyRevit tools i can see the name of the tool if I want to undo an action in revit. For example “Match graphic overrides”.
But my own tools give just the name “Sample Text”.

How can i set this name?
I´m using a .yaml file to set the name of my pushbuttons and it works just fine. Only this “undo name” is wrong.
Happy about any advice!
Kind Regards.
that is the transaction Name
with Transaction(doc,'TransactionName') as t1:
t1.Start()
t1.Commit()
1 Like
Gerhard.P
(Gerhard)
#3
Ah, thank you so much, i knew i have seen this “sample text” somewhere! 
Jean-Marc
(Jean-Marc Couffin)
#4
Let me add my 2 cents
When using
with revit.Transaction('name of the transaction'):
You don’t need a start and a commit. It is already wrapped in the revit.Transaction()
of pyrevit module
5 Likes