找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 1958|回复: 6

[每日一码] Object Break

[复制链接]

已领礼包: 1999个

财富等级: 堆金积玉

发表于 2013-6-6 13:51:19 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

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

×
本帖最后由 sachindkini 于 2013-6-6 13:54 编辑

Program Description
A generalisation and enhancement of my Circle Break program, this program enables the user to break a selected object either at two specified points, or at two points of intersection with another selected object, and apply a set of properties to the selected portion of the object.
As per my Circle Break program, the motivation for creating this program was to streamline the procedure of displaying hidden sections of geometry. Previously, an object would need to be broken separately at two points (perhaps using the AutoCAD break command), before selecting the resulting section and applying a set of properties to indicate hidden detail.

This manual method is suitable for polylines and open objects (such as lines, arcs & elliptical arcs); however, since an arc or elliptical arc cannot span a full circle, circles & ellipses cannot be broken at a single point and hence the hidden section would need to be manually recreated.

This program offers two commands to facilitate this operation:

brko: Break with Object

This command will prompt the user to select either a Line, Circle, Arc, Ellipse, Elliptical Arc or LWPolyline at the section to be broken, and then to select a second object which intersects the first in at least two places.

The program will then break the first selected object at the two closest points of intersection located either side of the point of selection, before applying the set of properties to the selected section.

请点击此处下载

查看状态:需购买或无权限

您的用户组是:游客

文件名称:ObjectBreakV1-0.lsp 
下载次数:44  文件大小:22.26 KB 
下载权限: 不限 以上  [免费赚D豆]

Demonstration of brko Command

brk: Break at two points

Upon issuing this command, the user may select a compatible object (as listed above) at the section to be hidden, and then select two break points. The selected object is then broken between the two points and a set of properties are applied to the selected section.

And now to challenge the program...

Demonstration of brk Command
objectbreak2.gif


Furthermore, both of the above described commands as offered by this program will operate successfully under all UCS & Views, and with objects constructed in any UCS plane.

Properties of Broken Section

The set of properties (Layer, Linetype, Lineweight etc.) to be applied to the hidden section of geometry are listed at the top of the program source code (beneath the code header) and may be altered to suit the requirements of the user. If properties are omitted from the list, the 'hidden' section of geometry will inherit these properties from the selected source object.






评分

参与人数 4D豆 +18 收起 理由
sicky111 + 5 很给力!经验;技术要点;资料分享奖!
Lispboy + 5 很给力!经验;技术要点;资料分享奖!
marting + 5 很给力!经验;技术要点;资料分享奖!
牢固 + 3 很给力!经验;技术要点;资料分享奖!

查看全部评分

论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!

已领礼包: 1个

财富等级: 恭喜发财

发表于 2013-6-7 06:22:05 | 显示全部楼层
dear sir: very good !
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

已领礼包: 2688个

财富等级: 家财万贯

发表于 2013-6-7 11:10:47 | 显示全部楼层
楼主的鼠标指针样式怎么这么个性,是怎么弄的?:lol

点评

一长一短,确实有个性,不知道在哪里设置。  详情 回复 发表于 2013-6-7 12:21
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

已领礼包: 6468个

财富等级: 富甲天下

发表于 2013-6-7 12:21:03 | 显示全部楼层
zyhandw 发表于 2013-6-7 11:10
楼主的鼠标指针样式怎么这么个性,是怎么弄的?

一长一短,确实有个性,不知道在哪里设置。

点评

说实话,很想学习一下!以前好像在明经上看到过,不过找不到了  详情 回复 发表于 2013-6-7 15:52
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

已领礼包: 2688个

财富等级: 家财万贯

发表于 2013-6-7 15:52:31 | 显示全部楼层
sicky111 发表于 2013-6-7 12:21
一长一短,确实有个性,不知道在哪里设置。

说实话,很想学习一下!以前好像在明经上看到过,不过找不到了
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

已领礼包: 1094个

财富等级: 财源广进

发表于 2022-4-27 00:13:28 | 显示全部楼层
感谢楼主分享!
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

已领礼包: 3729个

财富等级: 富可敌国

发表于 2022-4-30 21:00:13 | 显示全部楼层
谢谢分享
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|申请友链|Archiver|手机版|小黑屋|辽公网安备|晓东CAD家园 ( 辽ICP备15016793号 )

GMT+8, 2024-4-24 22:12 , Processed in 0.345922 second(s), 49 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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