I'm not sure exactly how the error function works, but I am trying to reference the "setback" function that I created for an error also. What am I doing wrong here? Here is the main function for my code: (defun c:lstate-fp (/ lay rors) (setvar "cmdecho" 0) (command "undo" "end") (command "undo" "group") (setq *ERROR* setback) (setq lay(getvar "clayer")) (setvar "clayer" "0") (prompt " Layer State FLOOR_PLAN: ") (setq rors (strcase (getstring " Restore or Save? [R/S]: "))) (cond ((= rors "R")(r-fp)) ((= rors "S")(s-fp)) (t(setback)) ) ) and here's my setback function: (defun setback (strErr) (if (= 1 (logand (cdr (assoc 70 (entget (tblobjname "layer" lay))))1)) (setvar "clayer" "0") (setvar "clayer" lay) ) (command "undo" "end") (setvar "cmdecho" 1) (princ) )