Hi
my program stop when executing (command) function. what im doing wrong?
- (defun unlockAllLayers () (princ "/nunlock all layers") T )(defun deleteEntityLimit (units) (princ (strcat "/nDelete line or poly if length is less than " (rtos units))) T )(defun setIsolateMode (mode)(if (= mode 0) (progn (princ "/nIsolate mode was set to Off") (command "layiso" "S" "O" "" )))(if (= mode 1) (progn (princ "/nIsolate mode was set to Lock and fade") (command "layiso" "S" "L" "" ))) T)(defun C:TEST (/ q yn) (if (unlockAllLayers) (if (setIsolateMode 1) (progn(setq q (getvar 'qaflags))(princ "/nIsolating...")(command "layiso" "")(setvar 'qaflags q)(initget "Yes No")(if (setq yn (getString "Do you want to proceed? Yes/No")) (if (= yn "Y") (alert "Yes") (alert "No") )) ) ) ))
Thanks
Shay |