《机械CADCAM》--试题参考-答案-3.27(5)

2020-04-17 02:00

(setq x40 (- x3 r)) (setq y40 y4) (setq x5 x40) (setq y5 (- y0 c)) (setq x6 x0) (setq y6 y5)

(setq p1(list x1 y1)) (setq p2(list x2 y2)) (setq p3(list x3 y3)) (setq p4(list x4 y4)) (setq p40(list x40 y40)) (setq p5(list x5 y5)) (setq p6(list x6 y6))

(command \ (command \ (command \)

17. 如图输入圆的直径D 和 正方形边长 B二个值,用AutoLISP编程自动绘制出该图(实线部分)。

(defun c:drawcr()

(setq p0 (getpoint \确定基点:\

(setq zhijing(getreal \输入圆的直径:\

(setq bianchang(getreal \输入正方形的边长:\

(setq ll(/ bianchang 2)) (setq x0(car p0)) (setq y0(cadr p0)) (setq x4(- x0 ll)) (setq y4(- y0 ll)) (setq p4(list x4 y4))

(command \

(command \)

18. 如图输入圆的直径D 和 两个圆的中心距 A 的值,用AutoLISP编程自动绘制出该图(实线部分)。

(defun c:drawcc()

(setq p1 (getpoint \确定基点:\

(setq dt(getdist \输入两圆的距离:\(setq d1(getreal \输入圆1的直径:\(setq d2(getreal \输入圆2的直径:\(setq r1(/ d1 2)) (setq r2(/ d2 2)) (setq x1(car p1)) (setq y1(cadr p1)) (setq x2(+ x1 dt)) (setq p2(list x2 y1)) (setq x11(+ x1 r1)) (setq x22(- x2 r2)) (setq p11(list x11 y1)) (setq p22(list x22 y1)) (command \(command \

(command \)


《机械CADCAM》--试题参考-答案-3.27(5).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:2010年度国家自然科学基金申请书形式审查表项目主持人 - 图文

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: