Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

undo sample

3 REPLIES 3
Reply
Message 1 of 4
sonicer
529 Views, 3 Replies

undo sample

Is there a sample c# how undo some transaction by name?

 

3 REPLIES 3
Message 2 of 4
matthew_taylor
in reply to: sonicer

Hi @sonicer,

Transactions can only be undone in order.

The only way to undo the last transaction is use the 'undo' command, or issue it via postcommand.

You may of course rollback your own transactions.

You would do well to explain what it is you're trying to achieve.


Cheers,

-Matt
_______________________________________________________________________________
Marking a post as a 'solution' helps the community. Giving a post 'Kudos' is as good as saying thanks. Why not do both?
Message 3 of 4
sonicer
in reply to: matthew_taylor

I would like create tags....with button that is in a form ...but if user click Cancel button need undo last transaction - tag created

Message 4 of 4
matthew_taylor
in reply to: sonicer

You should just be able to return 'Result.Cancelled'.

If that doesn't do what you want, you're going to have to show code to explain more fully.


Cheers,

-Matt
_______________________________________________________________________________
Marking a post as a 'solution' helps the community. Giving a post 'Kudos' is as good as saying thanks. Why not do both?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community