2612| 15
|
[提问] 优化源码:直线变矩形后,删除原直线 |
20明经币
最佳答案;; 直线变矩形
(defun c:b1()
(setvar "osmode" 0)
(setq ww (getreal "\n请输入宽度: "))
(prompt "\n框选欲变矩形的直线: ")
(setq ss (ssget '((0 . "LINE")))
d (* ww 0.5)
i -1
)
(while (setq s1 (ssname ss (setq i (1+ i))))
(setq p1 (vlax-curve-getstartPoint s1)
p2 (vlax-curve-getendPoint s1)
r (+ (angle p1 p2) (* pi 0.5))
)
...
| ||
发表于 2022-4-28 09:57:04
|
显示全部楼层
| ||
发表于 2022-4-28 10:07:07
|
显示全部楼层
| ||
| ||
发表于 2022-7-28 11:37:23
|
显示全部楼层
| ||
| ||
发表于 2022-7-30 09:51:23
|
显示全部楼层
| ||