Insener07 Posted January 5, 2009 Posted January 5, 2009 Hody! I have question about handling error in autolisp(or visual lisp) I would like that error function to do different things. The situation is something like this. i wanna insert an block. In the beginning the lisp routine asks two points and then it inserts an block and a text as well. If it asks two points it and it sets new sys variables. Right, at this moment if i hit escape it restores old sys variables. If this routine inserts an block it also sets new values for sys variables and if i hit escape at this moment esc the old sys variables will be restored. But i also would like it to delete this inserted block. Now i can't use this (entlast) command. if i hit esc before it has inserted an block it will delete some other object or block which is last object. Does anybody has a error handling routine which will restore sys variables any time when i hit esc and will only delet an block and text if it is inserted and won't delete last created object? Complicated huh:(( Thanks, M Quote
Lee Mac Posted January 5, 2009 Posted January 5, 2009 Would you be able to post the routine as it stands so that it could be modified? Thanks 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.