- (defun c:tt(/ ss o l en elist s n s2)
- (if(setq ss(ssget '((0 . "*text"))))
- (progn
- (setq i -1 k 1)
- (while(setq en(ssname ss (setq i(1+ i))))
- (setq elist(entget en))
- (setq s(cdr(assoc 1 elist)))
- (setq n(+ (atoi s) (1- k)))
- (setq s2(strcat (itoa k) "-"(itoa n)))
- (setq k (1+ n))
- (entmod(subst(cons 1 s2)(assoc 1 elist)elist))
- )
- )
- )
- (princ)
- )
|