 - (defun c:tt()
- (entmake(list '(0 . "text")
- (cons 1 "计算结果")
- '(40 . 5)
- (cons 10 '(0 0))
- )
- )
- (setq ent(entlast) wh t)
- (while wh
- (setq pt(grread t 8))
- (if(=(car pt)5)
- (entmod(subst(cons 10(cadr pt))(assoc 10(entget ent))(entget ent)))
- (progn
- (command "erase" ent "")
- (setq wh nil)
- )
- )
- )
- )
|