找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 1975|回复: 4

[每日一码] Change Block Base Point

[复制链接]

已领礼包: 1999个

财富等级: 堆金积玉

发表于 2013-6-7 15:22:13 | 显示全部楼层 |阅读模式

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

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

×
Program Description

This program allows the user to change the base point for all block references of a block definition in a drawing.

The program offers two commands:

CBP: Change Base Point

This command will retain the insertion point coordinates for all references of the selected block. Hence visually, the block components will be moved around the insertion point when the base point is changed.

CBPR: Change Base Point retain Reference position

This command will retain the position of the each block reference of the selected block. Hence, each block reference will be moved to retain the visual position when the base point is changed.

Upon issuing one of the above commands at the AutoCAD command-line, the program will prompt the user to select a block for which to change the base point.

Following a valid selection, the user is then prompted to specify a new base point relative to the selected block.

The block definition (and block reference depending on the command used) will then be modified to reflect the new block base point.

If the selected block is attributed, an ATTSYNC operation will also be performed to ensure all attributes are in the correct positions relative to the new base point.

Finally, the active viewport is regenerated to reflect the changes throughout all references of the block.

The program will furthermore perform successfully with rotated & scaled block references, constructed in any UCS plane.

Please Note: A REGEN is required if the UNDO command is used to undo the operations performed by this program.

请点击此处下载

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

您的用户组是:游客

文件名称:ChangeBlockBasePointV1-4.lsp 
下载次数:1248  文件大小:11.58 KB 
下载权限: 不限 以上  [免费赚D豆]

Demonstration ChangeBlockBasePoint.gif


评分

参与人数 1D豆 +5 收起 理由
sicky111 + 5 很给力!经验;技术要点;资料分享奖!

查看全部评分

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

已领礼包: 51个

财富等级: 招财进宝

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

使用道具 举报

已领礼包: 6468个

财富等级: 富甲天下

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

使用道具 举报

已领礼包: 1268个

财富等级: 财源广进

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

使用道具 举报

已领礼包: 1094个

财富等级: 财源广进

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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-18 08:10 , Processed in 0.527719 second(s), 48 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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