明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 16646|回复: 24

[已解答] 如何将所有线段在交点处打断?

[复制链接]
发表于 2014-4-11 10:48:47 | 显示全部楼层 |阅读模式
如题, 想将图纸中所有的线段(包括直线, 圆弧, 多线)在有交点的地方将它们打断, 如何实现?
举例如下图所示, 将图中直线段1, 圆弧2,  圆弧3, 直线段4在与其他线段的交点处将它们打断.

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
发表于 2014-6-11 07:25:51 | 显示全部楼层
功能很强大的交点打断源码。
;;;=======================[ BreakObjects.lsp ]==============================
;;; Author: Copyright? 2006,2007 Charles Alan Butler
;;; Contact @  www.TheSwamp.org
;;; Version:  1.3 April 9,2007
;;; Purpose: Break All selected objects
;;;    permitted objects are lines, lwplines, plines, splines,
;;;    ellipse, circles & arcs
;;;                           
;;;  Function  c:BreakAll -      Break all objects selected
;;;  Function  c:BreakwObjects - Break many objects with a single object
;;;  Function  c:BreakObject -   Break a single object with many objects
;;;  Function  c:BreakWith -     Break selected objects with other selected objects
;;;  Function  c:BreakTouching - Break objects touching the single Break object
;;;  Function  c:BreakSelected - Break selected objects with any  objects that touch it
;;;                    
;;; Sub_Routines:      
;;;    break_with      
;;;    ssget->vla-list
;;;    list->3pair     
;;;    onlockedlayer   
;;;    get_interpts Return a list of intersect points
;;;    break_obj  Break entity at break points in list
;;; Requirements: objects must have the same z-value
;;; Restrictions: Does not Break objects on locked layers
;;; Returns:  none
;;;=====================================================================
;;;   THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED     ;
;;;   WARRANTY.  ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR  ;
;;;   PURPOSE AND OF MERCHANTABILITY ARE HEREBY DISCLAIMED.            ;
;;;                                                                    ;
;;;  You are hereby granted permission to use, copy and modify this    ;
;;;  software without charge, provided you do so exclusively for       ;
;;;  your own use or for use by others in your organization in the     ;
;;;  performance of their normal duties, and provided further that     ;
;;;  the above copyright notice appears in all copies and both that    ;
;;;  copyright notice and the limited warranty and restricted rights   ;
;;;  notice below appear in all supporting documentation.              ;
;;;=====================================================================

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x

评分

参与人数 2明经币 +1 金钱 +10 收起 理由
tryhi + 1
Dani1988 + 10

查看全部评分

回复 支持 2 反对 0

使用道具 举报

发表于 2018-5-14 17:25:32 | 显示全部楼层
好东西  就是可惜英文的, 没有中文注释
发表于 2014-4-11 10:58:49 | 显示全部楼层
论坛上找找就有了

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
 楼主| 发表于 2014-4-11 12:09:58 | 显示全部楼层
flyfox1047 发表于 2014-4-11 10:58
论坛上找找就有了

嗯, 谢谢 . 搜了一下, 果然很多先例
发表于 2014-4-29 16:35:45 | 显示全部楼层
下载了,谢谢楼主分享
发表于 2014-4-29 19:45:13 | 显示全部楼层
恩,不知道运行速度怎么样,也正需要这个
发表于 2014-5-19 01:00:41 | 显示全部楼层
flyfox1047 发表于 2014-4-11 10:58
论坛上找找就有了

这个交点打断,好像经支持直线,不支持多段线,是vlx不是源码。没得意思。
发表于 2014-11-27 22:54:02 | 显示全部楼层
谢谢楼主分享
发表于 2014-11-28 08:54:18 | 显示全部楼层
确实很不错...
发表于 2015-1-30 10:30:18 | 显示全部楼层
感谢分享!!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2025-5-18 13:08 , Processed in 0.181887 second(s), 33 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表