jeff26 发表于 2022-7-5 17:36:47

LISP - Block Rename / Block Re

Hi,
 
First, this site is wonderful.Many posts from members havehelped 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'mtrying to do.I have a consultant that uses Revit for design, but ourcompany uses AutoCAD.They have exported their model into a dwg for usto see and use, but it came with its own problems.
 
One suchproblem is the family of items such as a chair.Each chair they createdhas its own unique name.So when I open up the dwg and take a look atmy block list, I see tons of identical chair blocks with their ownname.There may be up to 10 chairs with a given unique name along with10-20 different block names (if that makes sense).
 
I have triedusing RENAME, but it only allows one type of block to be re-named.   Anything else becomes a duplicate error.I have also looked intoEXPRESS TOOLS REPLACE BLOCK.The replaced block can accept the newname, but gets changed with a different rotation.I suspect that theblock was drawn with a rotation.It isn't feasible for me to go andre-rotate all the blocks due to the number present.I have also lookedinto the BRE LISP by Alan Thompson.Again, the replaced blocks getrotated.
 
So, I am looking for a LISP that can snatch up all those unique blocks andrename 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

amcdicsac 发表于 2022-7-5 17:53:23

Attach dwg to understand....!!!!

Lee Mac 发表于 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.

halam 发表于 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..

halam 发表于 2022-7-5 18:50:53

These i made with some Revit DWG obstacle in mind. Part of possible sollutions...
 
 


 
 
Enjoy
Good night
页: [1]
查看完整版本: LISP - Block Rename / Block Re