chang1622 发表于 2014-5-27 09:37:35

多段线打断于点

多段线打断于点-----在两多段线交点处打断分为两部分
如何实现?

Gu_xl 发表于 2014-5-27 09:48:27

自然是先计算交点,然后再打断!交点打断的代码,论坛里搜搜,应该很多!

chang1622 发表于 2014-5-27 10:14:27

论坛里交点打断的代码使用不理想,打断后多段线会分为三段

lucas_3333 发表于 2014-5-27 10:27:40

chang1622 发表于 2014-5-27 10:14 static/image/common/back.gif
论坛里交点打断的代码使用不理想,打断后多段线会分为三段

打断间隙设了没有? 最好把代码贴上来,可能会有高手帮你修改

chang1622 发表于 2014-5-27 10:53:14

(defun c:br ()
(command "_.break" (car(entsel)) pause "@")
(while (and
         (setq pt (getpoint "\n打断位置点:"))
         (setq ss (ssget pt '((0 . "*line,arc"))))
         )
    (setq e (ssname ss 0))
    (command "break" e pt "@")
   
    )
)

高手帮看看修改

自贡黄明儒 发表于 2014-5-27 16:53:09

http://bbs.mjtd.com/thread-86652-1-1.html,3楼有一个函数(defun ssCircle1 (ss ent)
选择集ss与ent相交处均打断
页: [1]
查看完整版本: 多段线打断于点