本帖最后由 作者 于 2002-10-18 11:59:05 编辑
[此贴子已经被作者于2002-10-17 22:59:12编辑过]
(defun c:test()
(setq shuz (getint"\n输入初始号码:"))
(setq shuz (- shuz 1))
(while t
(setq shuz (+ shuz 1))
(setq txtf (rtos shuz 2 0))
(setq obj_temp (car (entsel "\n选择文本:")))
(if( null obj_temp)
(setq obj_temp (car (entsel "\n选择文本:")))
)
(setq ed (entget obj_temp))
(setq ed (subst (cons 1 txtf) (assoc 1 ed) ed))
(entmod ed))
) |