大神 看一下 auto lisp 那错了总是出现出现参数类型错误 numberp.nil

(defunwgw()(setqp1(getpoint"\n输入圆心坐标点:"))(setqr1(getreal"\n输入圆的半径:"))(setqr2(*0.05r1)... (defun wgw () (setq p1 (getpoint "\n输入圆心坐标点:")) (setq r1 (getreal "\n输入圆的半径:")) (setq r2 (* 0.05 r1)) (setq p2 (list (- (car p1) 50) (+ (cadr p1) 450))) (setq p4 (list (+ (car p1) 40) (+ (cadr p1) 540))) (setq p3 (list (car p4) (cadr p2))) (setq p5 (list (car p2) (cadr p4))) (setq p6 (list (- (car p1) 50) (- (cadr p1) 540))) (setq p8 (list (+ (car p1) 40) (- (cadr p1) 450))) (setq p7 (list (car p8) (cadr p6))) (setq p9 (list (car p6) (cadr p8))) (setq p10 (list (+ (car p1) 450) (- (cadr p1) 50))) (setq p12 (list (+ (car p1) 540) (+ (cadr p1) 40))) (setq p11 (list (car p12) (cadr p10))) (setq p13 (list (car p10) (cadr p12))) (setq p14 (list (- (car p1) 450) (- (cadr p1) 50))) (setq p16 (list (- (car p1) 540) (+ (cadr p1) 40))) (setq p15 (list (car p16) (cadr p14))) (setq p17 (list (car p14) (cadr p16))) (setq p18 (list (car p1) (+ (cadr p1) (- r 100)))) (setq p19 (list (car p1) (- (cadr p1) 300))) (command "circle" p1 r1) (command "circle" p1 r2) (command "pline" p2 p3 p4 p5 "c") (command "pline" p6 p7 p8 p9 "c") (command "pline" p10 p11 p12 p13 "c") (command "pline" p14 p15 p16 p17 "c") (command "line" p18 P19) ) 展开
 我来答
百度网友16ef25c
2015-06-12 · 超过24用户采纳过TA的回答
知道答主
回答量:111
采纳率:0%
帮助的人:41.4万
展开全部
(setq p18 (list (car p1) (+ (cadr p1) (- r 100))))
r错误

明经 AutoLISP 编程 102918348
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式