作者sjgau (sjgau)
看板Cad_Cae
标题Re: [问题] 参考某一未知长度画圆或画弧
时间Tue Nov 9 06:55:31 2010
我了解他的意思和 需求,
因为,我真的画过工程图。
(defun dtor(d1 / )
(* (/ d1 180.0) pi)
); end of dtor()
; -----------------------------------------------
; draw a arc by CDR, C:圆心,D:方向, R:半径
(defun c:arc-cdr( / pc p1 t1 t2 t3 p2 p3)
(setq pc (getpoint "\n 弧的圆心: "))
(setq p1 (getpoint "\n 大概的方向: "))
(setq t1 (angle pc p1))
(setq r1 (getdist "\n 输入两点 决定半径: "))
(setq t2 (+ t1 (dtor 15.0)))
(setq t3 (- t1 (dtor 15.0)))
(setq p2 (polar pc t3 r1))
(setq p3 (polar pc t2 r1))
(setq p1 (polar pc t1 r1))
(command "arc" p2 p1 p3)
(princ)
); end of c:arc-cdr
※ 引述《zerod (雷洛德)》之铭言:
: 自己在利用autocad练习制图实习的应用几何时
: 常常卡在要利用某一线段长度来画弧
: 不知道有没有其他方法可以在设定直径及半径时
: 直接参考或抓取线段长度来画圆或画弧
: 谢谢
--
e-mail:
[email protected]
我的课程介绍网页:
http://www.csie.ntu.edu.tw/train/teacher_display.php?num=18
AutoCAD 台湾地区菁英讲师获选
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 111.83.7.107