试试! - (defun c:t11 (/ ss a en ty 7h 3h)
- (setq ss (ssget ":l") a -1 7h (getvar 'textstyle) 3h (getvar 'dimstyle))
- (if ss
- (while (setq en (ssname ss (setq a (1+ a))
- )
- )
- (setq ty (cdr(assoc 0 (entget en))
- )
- )
- (cond
- ((= ty "TEXT")(entmod(subst (cons 7 7h) (assoc 7 (entget en))(entget en))
- )
- )
- ((= ty "DIMENSION")(entmod(subst (cons 3 3h) (assoc 3 (entget en))(entget en))
- )
- )
- )
- )
- )
- (princ)
- )
|