(defun
c:CF(/ ent) (setvar
"cmdecho"
0);关闭回显 (command
"_.-LAYER"
"m"
"COVER LINE"
"c"
"150"
"COVER LINE"
"") (command
"_.-LAYER"
"s"
"COVER LINE"
"") (setq ent (ssget)) (if ent (progn (setq n -1) (repeat (sslength ent) (setq en (ssname ent (setq n (1+ n))) (command
"chprop" ent "" "s" "100" "" "") (command
"WIPEOUT"
"P" ent "Y") ) (prompt
"原有的图层已删除.\n") (princ) ) ) )
没有测试,大概就这个意思 |