 - (defun c:tt ()
- (if (setq s (ssget '((0 . "*text"))))
- (progn
- (repeat (setq n (sslength s))
- (setq o (vlax-ename->vla-object (ssname s (setq n (1- n)))))
- (setq str (VL-LIST->STRING
- (vl-remove-if
- '(lambda (a) (or (< a 48) (> a 57)))
- (VL-STRING->LIST (vla-get-textstring o))
- )
- )
- )
- (vla-put-TextString o str)
- )
- )
- )
- (princ)
- )
|