本帖最后由 阿然 于 2013-3-2 11:40 编辑
 - ;;;只对单行文本有效
- (defun c:tt (/ ent elst txtstr)
- (while (setq ent (car (entsel "\n选择文字:")))
- (setq elst (entget ent))
- (setq txtstr (cdr (assoc 1 elst)))
- (setq txtstr (strcat "%%U" txtstr))
- (setq elst (subst (cons 1 txtstr) (assoc 1 elst) elst))
- (entmod elst)
- (princ) ))
|