 - (defun AYL-ssClist (ss / EnLst n)
- (setq EnLst nil)
- (repeat (setq n (sslength ss))
- (setq EnLst (cons (ssname ss (setq n (1- n))) EnLst))
- )
- )
- (defun AYL-UMString (String Sustr / StrLst n Sustr0)
- (setq StrLst nil)
- (while (setq n (vl-string-search Sustr String))
- (setq Sustr0 (substr String 1 n)
- String (substr String (+ n (strlen Sustr) 1))
- StrLst (cons Sustr (cons Sustr0 StrLst))
- )
- )
- (apply 'strcat (cons String StrLst))
- )
- (defun c:tt (/ EntLst)
- (if (setq ss (ssget '((0 . "*Text"))))
- (progn
- (setq EntLst (AYL-ssClist ss)
- ss nil
- )
- (mapcar
- (function
- (lambda (x / a b)
- (setq a (entget x)
- b (assoc 1 a)
- )
- (entmod (subst (cons 1 (AYL-UMString (cdr b) ";")) b a))
- )
- )
- EntLst
- )
- )
- )
- (princ)
- )
|