AutoCAD - Bulk Block Rename

AutoCAD - Bulk Block Rename

Seychellian
Advocate Advocate
1,689 Views
9 Replies
Message 1 of 10

AutoCAD - Bulk Block Rename

Seychellian
Advocate
Advocate

Hi I searched google for this and couldnt find a solution.

 

I am shifting a block library to a new company name and I need add a prefix to all the blocks (1000's) to differentiate them. I know you can rename blocks with the RENAME command in AutoCAD but how can i bulk rename them to avoid the laborious task of doing each one individually?

 

Thanks!

 

[ The subject line of this post has been edited for clarity by @handjonathan Original: Bulk Block Rename ]

0 Likes
Accepted solutions (1)
1,690 Views
9 Replies
Replies (9)
Message 2 of 10

ВeekeeCZ
Consultant
Consultant

You would need some LISP that renames all necessary blocks in one file - without failure. Use can use THIS one for example, but you can find plenty of others.

Then you would need a SCRIPT PRO HERE to apply the lisp across the files...

Message 3 of 10

tramber
Advisor
Advisor
  • Blocks as separated dwgs in directories, you need a software as the lovely Ant Renamer
  • Blocks recorded in a drawing ? You could list them or do you have a computated list of names already ? In such case, Excel and a script built with is a natural and easy solution. Try the command -RENAME (not RENAME), it shows you that it can be done with script. But you need a list of precise names in order not to fail. Or you need a lisp that test each name, in case.

EESignature

0 Likes
Message 4 of 10

3wood
Advisor
Advisor

If all blocks are in current drawing, you can use wildcard to rename all of them in one go.

BASE.JPG

Message 5 of 10

tramber
Advisor
Advisor

Well done @3wood because, yes, wild-car is allowed..., i forgot that !


EESignature

0 Likes
Message 6 of 10

Kent1Cooper
Consultant
Consultant

[Just be aware that the * wildcard approach in RENAME works only to add a PREFIX to all Block names.  You can't add a SUFFIX to all of them that way.  That's enough for the OP's request, but there is that limitation.]

Kent Cooper, AIA
0 Likes
Message 7 of 10

cadffm
Consultant
Consultant

and here we talking about PREfix 😊

 

Suffix is also possible, but only by one step for blocks with the same name length.

I you have blocknames, all with the same length, one step for all blocks.

???

???suffix

Sebastian

0 Likes
Message 8 of 10

paullimapa
Mentor
Mentor
Accepted solution

Try my free BlockApps which includes a Rename multiple Block feature

https://apps.autodesk.com/ACD/en/Detail/Index?id=3309945226076337959&appLang=en&os=Win64


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 9 of 10

Seychellian
Advocate
Advocate

This is EXACTLY what im looking for. It's very rare that happens.

 

Thanks a lot. Youre a life saver!

0 Likes
Message 10 of 10

paullimapa
Mentor
Mentor

Glad that worked out for you...cheers!!!


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes