像这样的?
- (defun c:cChng (/ clr i ss ent elst)
- (vl-load-com)
- (if (and (setq clr (acad_colordlg 0))
- (setq i -1 ss (ssget "_:L")))
-
- (while (setq ent (ssname ss (setq i (1+ i))))
- (setq elst
- (vl-remove-if
- (function
- (lambda (x)
- (vl-position (car x) '(62 420)))) (entget ent)))
- (entmod (append elst (list (cons 62 clr))))))
- (princ))
-
|