- (defun c:tt13(/ en ent entbak i jia m n name namebak ss str)
- (setq str "")
- (setq jia "+")
- (setq ss (ssget '((0 . "text"))))
- (setq i 0)
- (repeat (sslength ss)
- (setq name (ssname ss i))
- (print name)
- (setq str (strcat str (cdr (assoc 1 (setq ent (entget name)))) jia))
- (print i)
- (print str)
- (if (= i (- (sslength ss) 1))
- (setq str (vl-string-trim "+" str))
- )
- (if (null entbak)
- (setq entbak ent namebak name)
- (progn (entmod (subst(cons 1 str)(assoc 1 entbak) entbak ))(entdel name))
- )
- (redraw namebak 3)
- (if namebak (redraw namebak 4) )
- (setq i (1+ i))
- )
- (princ)
- )
|