- (defun c:tt (/ EN ENT GET LEN NN SEL)
- (princ "\n功能 [批量刷文字内容]")
- (if (setq seL (entsel "\n选择源文字:"))
- (progn
- (setq en (cdr (assoc 1 (entget (car seL)))))
- (and (setq get (ssget '((0 . "*TEXT"))))
- (progn
- (setq len (sslength get))
- (repeat len
- (setq nn (ssname get (setq len (1- len)))
- ent (entget nn)
- )
- (entmod (subst (cons 1 en) (assoc 1 ent) ent))
- )
- )
- )
- )
- )
- (princ)
- )
|