993| 6
|
根据两点直线画一个外偏矩形框 |
40明经币
最佳答案(defun c:test(/ an d1 d2 os p1 p2 p3 p4 p5 p6 p7 )
(setvar "cmdecho" 0)
(defun ptmid(a b)(mapcar '(lambda(x y)(/(+ x y)2.0))a b))
(setq os(getvar "osmode"))
(if(and(setq p1(getpoint "\n请指定起始点:"))(setq p2(getpoint p1 "请指定第二点:"))(>(setq d1(distance p1 p2))0))
(progn
(setvar "osmode" 0)
(setq d2(+ d1 100)an(angle p1 p2)p3(polar p2 an d2)p4(polar p3(+(* pi 1.5)an)200)p ...
| ||
发表于 2023-5-26 09:24:24
|
显示全部楼层
| ||
发表于 2023-5-26 11:28:47
|
显示全部楼层
| ||
| ||
| ||