218
699
483
顶梁支柱
(defun finding-c(/ p1 p2 p3 dst segC isegC) (setq p1 (getpoint "\nSpecify first point")) (setq p2 (getpoint p1 "\nSpecify second point")) (command "_pline" p1 p2 "") (setq p3 (getpoint p2 "\nSpecify third point")) (command "_pline" p2 p3 "");;; get the length of the missing segment (setq dst (sqrt (+ (* (distance p1 p2) (distance p1 p2)) ;power 2 (* (distance p2 p3) (distance p2 p3)) ;power 2 ) )) ;;; get the angle of the missing segment (setq raw (/ (distance p2 p3) (distance p1 p2)));;; get tanges (setq p4 (polar p3 (atan raw) dst)) (command "_pline" p3 p4 "") )
使用道具 举报
114
1万
中流砥柱
106
101
(setq p1 (getpoint "\nSpecify first point")) (setq p2 (getpoint p1 "\nSpecify second point")) (setq p3 (getpoint p2 "\nSpecify third point")) (command "_pline" P1 p2 p3 "C" )
本版积分规则 发表回复 回帖后跳转到最后一页
微信公众平台
扫描访问手机版
点击图片下载手机App
|关于我们|小黑屋|乐筑天下 繁体中文
GMT+8, 2025-3-11 03:27 , Processed in 0.397532 second(s), 62 queries .
© 2020-2025 乐筑天下
在线时间:10:00-17:00
暂无
扫一扫,关注我们
帮助中心
关于我们
下载APP客户端