I've got this script from others forum,created by tjam51,I want to know how the error would work,and what input give them in order this script display error (defun c:h (/ sSet *error*) (defun *error* (msg) (setvar "cmdecho" 1) ) ; end *error* (setvar "cmdecho" 0) (princ "*** Select objects for Hatch & press [Enter] ") (terpri) (command "hatch" "" "" "") (while (= 1 (getvar "cmdactive")) (command pause) ) ; end while (command "") (princ) )