974| 5
|
[提问] 求LISP程序:多段线与直线组 Y方向延伸至与指定点的Y坐标相同 |
30明经币
最佳答案(defun c:tt(/ CD CZ DERD DSDERD DYD ENT I LST LSZ P P1 P2 PP PP2 SS ZDD ZDZB ZMH)
(prompt "\n框选线")
(setq ss(ssget))
(setq p(getpoint))
(defun ff(pp p1 p2 pp2)
(setq cz(abs(-(cadr pp) (cadr p))))
(if(/= 0 (setq lsz(-(car p1)(car p2))))
(setq cd(abs(/ cz (sin(atan(/(-(cadr p1)(cadr p2)) (-(car p1)(car p2))))))))
(setq cd cz)
)
...
| ||
发表于 2024-5-17 00:22:37
|
显示全部楼层
| ||
发表于 2024-5-17 08:12:57
|
显示全部楼层
| ||
发表于 2024-5-17 08:58:38
|
显示全部楼层
| ||
| ||