(defun c:myprg
(/ Layer
-p results
)
;; return boole for layer existence
)
'("layer1" "layer2" "layer3" "layer4")
);end mapcar
)
(foreach x
(list "ZERO" "EMPTY" "BLOCK" "MLINESTYLE" "LAYER" "LTYPE" "VISUALSTYLES" "MATERIALS") (command "-purge" x
"*" "n" "-overkill" "all" "" "") );end if
); end foreach
); end defun