Thanks !!! ;-) "Hutchins, David J" <david.j.hutchins@xxxxxxxxx> 02/07/2005 03:18 PM To <Andy_Kulik@xxxxxxx> cc Subject RE: [PCB_FORUM] 15.2 SKILL: using Undo Andy, It?s really easy to implement an undo utilizing the axlDBTransaction functions? ("Add" if( Version >= 14.0 then (Mark = axlDBTransactionStart()) ) EPG_Edit_Adder(EPG_Edit_Form) ) ("Undo" if( greaterp(length(EPG_Shape_List) 0) then if( Version >= 14.0 then axlDBTransactionRollback(Mark) ) (axlUIWPrint EPG_Edit_Form "Undo successful") else (axlUIWPrint EPG_Edit_Form "nothing to Undo") ) ) From: Andy_Kulik@xxxxxxx [mailto:Andy_Kulik@xxxxxxx] Sent: Monday, February 07, 2005 12:04 PM To: icu-pcb-forum@xxxxxxxxxxxxx Subject: [PCB_FORUM] 15.2 SKILL: using Undo Hi all, I have a skill program that similar to the replace via skill program on sourcelink. I would like to give the user the ability to use the undo function in allegro after they replaced a bunch of vias. My problem is that the undo buttons are disabled. Any thoughts? Andy PS: The replacement uses axlReplacePadstack with a list of dbids as an argument (for performance). After the replace, the dbids change, so I cannot really go back to implement an undo in skill without major coding effort.