TAGS :Viewed: 3 - Published at: a few seconds ago

[ Undo last action in vb.net in Catia ]

I am trying to Undo last action in Catia via vb.net. I have tried (after grabbing catia object):

  • CATIA.StartCommand("Undo")

  • CATIA.StartCommand("Undo Empty selection")

no results. When I switch to CATIA window and press Ctr^Z undo works. I don' want a user interaction in Catia so Undo with history just won't do.

Thanks for any input, Anna

Answer 1

Usually you cannot "undo" an action performed by scripts. Perhaps you can get a way to really undo the last action (like delete the product that was added, instead of "undo")?