之后你是怎么做的?用了哪些函数,我估计可能是函数用错了,
看以下代码,没问题。适用TEXT。
 - (defun c:test( / sinf txt txt_n)
- (setq sinf (entget (ssname (ssget '((0 . "text")))0)))
- (setq txt (cdr (assoc 1 sinf)))
- (setq txt_n (atof txt))
- (setq txt_n (- txt_n 0.9))
- (setq txt (rtos txt_n))
- (setq sinf (subst (cons 1 txt) (assoc 1 sinf) sinf))
- (entmod sinf)
- (princ)
- )
|