836| 7
|
[提问] 求问如何在一条线段两侧各加一段线 |
10明经币
最佳答案(defun c:tt (/ p1 p2 fun)
(setq p1 (getpoint "\np1:"))
(setq p2 (getpoint "\np2:"))
(setq fun (lambda (x y) (entmake (list '(0 . "line") (cons 10 x) (cons 11 y)))))
(fun (polar p1 (angle p1 p2) 0.5) (polar p1 (angle p1 p2) 2.5))
(fun (polar p2 (angle p2 p1) 0.5) (polar p2 (angle p2 p1) 2.5))
(princ)
)
| ||
发表于 2024-5-30 23:38:35
|
显示全部楼层
评分 | ||
发表于 2024-5-31 00:45:57
|
显示全部楼层
| ||
发表于 2024-5-31 07:34:15
|
显示全部楼层
| ||
发表于 2024-5-31 08:49:29
|
显示全部楼层
| ||
发表于 2024-5-31 17:37:47
|
显示全部楼层
| ||
发表于 2024-5-31 17:51:11
|
显示全部楼层
| ||