FazBear Posted April 28, 2009 Posted April 28, 2009 Hi all I have a problem with a lisp that runs a series of commands on a drawing then uses _save to save a copy to a specific location then i need it to undo to the begining of the drawing again so i can basically repeat a similar process and _save again. Problem is once the lisp has _save'ed is seams to lose its undo history and will only undo to the point of the _save. I have tried this series of commands outside of a lisp routine and it works fine, cant understand why it acts differently. Anyone have the answer? Cheers all :S Quote
Patrick_35 Posted April 29, 2009 Posted April 29, 2009 Hi Are you try (command "_.undo" "_begin") My lisp .... .... (command "_.undo" "_end") ? @+ Quote
FazBear Posted April 29, 2009 Author Posted April 29, 2009 I tried (command "undo" "100") I will try what you have suggested and post my results. Thank you for your reply. Quote
FazBear Posted April 29, 2009 Author Posted April 29, 2009 Tried and failed Turned out to be something else in the lisp, got it working now. Thank you Patrick_35 Quote
Patrick_35 Posted April 29, 2009 Posted April 29, 2009 An example (defun c:test() (command "_.undo" "_group") (command "_.line" "0,0" "10,10" "") (command "_.line" "10,10" "20,10" "") (command "_.line" "30,0" "50,10" "") (command "_.line" "4,0" "100,100" "") (command "_.line" "50,0" "70,10" "") (command "_.undo" "_end") ) just 1 undo @+ Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.