你好
我已将和更改为等于零,但它宣布了一个错误。
- (defun c:Try (/ fname tx pt)
- (if (findfile "c:/try.txt")
- (setq fname (open "c:/try.txt" "r"))
- (alert [color="Red"]"FILE NOT FOUND!"[/color]));;[color="red"] This alert is suppressed to command line[/color]
- (repeat 16 (setq tx (read-line fname)));;; [color="Red"]Text is not avaliable in reallity[/color]
- (if ([color="Red"]eq tx nil[/color]);;; [color="Red"]What's the right action in here[/color]
- (progn
- (alert "TEXT NOT EXISTED")[color="red"] This alert is suppressed to command line[/color]
- (princ))
- (setq pt (getpoint "\nText location : "))
- )
- (entmakex (list '(0 . "TEXT")
- (cons 40 (getvar 'textsize))
- (cons 1 tx)
- (cons 10 (trans pt 1 0))))
- (princ)
- )
谢谢
塔瓦特 |