I am using a lisp routine to toggle some system variables that I change fairly often. My lisp works just fine...for me. However, my general users are interested in seeing an acknowledgment of the switch printed to the command line after the command has been executed. Here is the code I am using:
(defun c:rnm ()
(if (= (getvar "osmode") 1791)
(setvar "osmode" 1088) ;Sets object snap mode to insertion point only
(setvar "osmode" 1791) ;Sets object snap mode to "normal" osmode
)
(princ)
)
Basically, I would like to use (princ "\nOsmode Insertion point set.") or whatever when my little routine runs. So when it sees 1791 is active it changes it to 1088, then prints a confirmation to the command line, and vice versa.
I have a feeling this is simple, but for some reason the solution elludes me.
Thanks for your help!