- (defun c:cbc (/ ss i en et)
- (princ "\n请选择属性块。")
- (setq ss (ssget '((0 . "Insert") (66 . 1)))
- i -1
- )
- (if ss
- (repeat (sslength ss)
- (setq en (ssname ss (setq i (1+ i))))
- (while (and (setq en (entnext en))
- (/= (cdr (assoc 0 (entget en))) "SEQEND")
- )
- (if (assoc 62 (setq et (entget en)))
- (entmod (subst '(62 . 0) (assoc 62 et) et))
- (entmod (append et '((62 . 0))))
- )
- (entupd en)
- )
- )
- )
- (princ)
- )
- (princ "\n将属性块中属性文字颜色改为“随块(byblock)”。")
- (princ "\n命令:cbc")
- (princ)
|