Hello All,
I am not an expert in lisp, but I can do a few things. Here is my problem:
Our lisp routines, when invoked, set some variables, and then when the routine is done, it will set them back. For example, this--> (setvar OLDOS (getvar "osmode")). And then, at the end of the routine, it will do this
-->(setvar "osmode" OLDOS). Now, sometimes, people will cancel the routine right when it has been invoked. How can I make it so that if the user hits the ESC button, it will revert back to their settings?? Thanks
I am not an expert in lisp, but I can do a few things. Here is my problem:
Our lisp routines, when invoked, set some variables, and then when the routine is done, it will set them back. For example, this--> (setvar OLDOS (getvar "osmode")). And then, at the end of the routine, it will do this
-->(setvar "osmode" OLDOS). Now, sometimes, people will cancel the routine right when it has been invoked. How can I make it so that if the user hits the ESC button, it will revert back to their settings?? Thanks