(defun c:ff () (setq ent (car (entsel))) (while (Not (and (setq ent (entsel)) (= (cdr (assoc 0 (entget (car ent)))) "LINE") ) ) ) (entdel (car ent)) (redraw) ; check this line to see if needed (alert "已经成功将选取的直线删除!") (princ) ) ;;; 最好是在选取时,如果遇到右击时能够退出选取 <== 这个得向 Grread 下苦功 |