本帖最后由 gogozb 于 2022-11-10 16:38 编辑
 - (defun c:wz (/ int1 y0)
- (setq int1 (getint "\n输入指定文本数目:"))
- (if (= int1 nil)
- (setq int1 1)
- )
- (setq wb (getpoint "\n 要写入文本的位置:"))
- (repeat int1
- (setq y0 (cadr wb))
- (setq pw (list (car wb) y0))
- (command "text" "m" pw 2.5 0 int1 )
- (princ "\nOK")
- (print y0)
- (setq y0 (+ y0 10))
- (print y0)
- ) ;end repeat int1
- (princ)
- )
以上代做得不到想要的结果,请问是哪里出错了。
|