849| 8
|
[提问] (求助)请问各位大神能否把等分辅助线改成等距辅助线 |
10明经币
最佳答案(defun c:tt5 (/ ang1 d m n p0 p1 p2)
(setq p1 (getpoint "\n点取第一点:"))
(setq p2 (getpoint p1 "\n点取第二点:"))
(setq ang1 (angle p1 p2))
(setq d (getint "\n输入等分距离:"))
(if (null d) (setq d 100))
(setq p0 (polar p1 ang1 (/ (distance p1 p2) (setq n (fix (+ 0.5 (/ (distance p1 p2) d)))))))
(repeat (- n 1)
(command "xline" "b" "non" p0 "non" p1 "non" p2 "")
(setq p0 (po ...
| ||
发表于 2021-5-19 15:53:29
|
显示全部楼层
点评
大神,历害
| ||
| ||
| |
| ||
发表于 2021-12-5 19:12:21
|
显示全部楼层
| ||