乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 80|回复: 4

[编程交流] LISP - Block Rename / Block Re

[复制链接]

1

主题

1

帖子

0

银币

初来乍到

Rank: 1

铜币
5
发表于 2022-7-5 17:36:47 | 显示全部楼层 |阅读模式
Hi,
 
First, this site is wonderful.  Many posts from members have  helped me with my questions.  I've been scouring the forum for a LISP,  but seem to have come up short.  
 
I'll try to explain what I'm  trying to do.  I have a consultant that uses Revit for design, but our  company uses AutoCAD.  They have exported their model into a dwg for us  to see and use, but it came with its own problems.  
 
One such  problem is the family of items such as a chair.  Each chair they created  has its own unique name.  So when I open up the dwg and take a look at  my block list, I see tons of identical chair blocks with their own  name.  There may be up to 10 chairs with a given unique name along with  10-20 different block names (if that makes sense).
 
I have tried  using RENAME, but it only allows one type of block to be re-named.   Anything else becomes a duplicate error.  I have also looked into  EXPRESS TOOLS REPLACE BLOCK.  The replaced block can accept the new  name, but gets changed with a different rotation.  I suspect that the  block was drawn with a rotation.  It isn't feasible for me to go and  re-rotate all the blocks due to the number present.  I have also looked  into the BRE LISP by Alan Thompson.  Again, the replaced blocks get  rotated.
 
So, I am looking for a LISP that can snatch up all those unique blocks and  rename or replace them with a generic block name like A-CHAIR while keeping their orientation as seen in model space.
 
Any help would be greatly appreciated.
 
 
Thank you in advance.
 
Jeff
回复

使用道具 举报

12

主题

25

帖子

13

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
60
发表于 2022-7-5 17:53:23 | 显示全部楼层
Attach dwg to understand....!!!!
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-5 18:19:04 | 显示全部楼层
Some time ago I posted this program to facilitate the selection of blocks with differing block names but with identical geometry; upon acquiring such a selection, one can rename or replace the blocks to use a single block name. Unfortunately you will need to wait until The Swamp forums are back online to view the posted code - the site should be back up any day now.
回复

使用道具 举报

37

主题

264

帖子

236

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
185
发表于 2022-7-5 18:33:57 | 显示全部楼层
Welcome to this site Jeff!
It is a great resource ! together with that other site
Hope theswamp.org is back online soon.
 
 
Let me point you to the site of Lee Mac while i am at it.
great stuff! http://www.lee-mac.com/programs.html
 
 
I am familiar with the Revit DWG output. Been there, d... still am there as a matter of fact..;-)
Will get back to you later this week after reading and thinking some
Have to go to bed now..
回复

使用道具 举报

37

主题

264

帖子

236

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
185
发表于 2022-7-5 18:50:53 | 显示全部楼层
These i made with some Revit DWG obstacle in mind. Part of possible sollutions...
 
 


 
 
Enjoy
Good night
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-13 03:11 , Processed in 0.507314 second(s), 62 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表