IN THIS ARTICLE
How to rename blocks and other named objects in AutoCAD
You can use RENAME command to rename blocks in AutoCAD and also other named objects like layers, linetypes, text styles, views and a lot more.
You can not only rename these objects one by one but also you can rename multiple objects using the wildcard characters.
In this article, I will show you the step-by-step method of renaming these named objects using both methods.
Renaming individual objects
Type RENAME (or REN command) on the command line and press enter, Rename window with the list of all named objects will pop up which looks like this.
From the left panel click on the object type that you want to rename.
For the current example, I will select Blocks.
The right panel will show the list of all blocks present in the drawing, click on the block name which you want to rename.
You will see the current name of the block in the “Old Name” field present below the items panel.
Type in a new name in the “Rename To” field and click on the “Rename To” button.
Your block will be renamed to the new name, once you are done renaming objects click the OK button to save the changes and close the rename window.
Renaming multiple objects
The rename command is not limited to renaming named objects individually, you can even rename multiple blocks and other named objects with REN command using wildcard characters.
For explaining this, I will assume that we have a drawing with six layers as shown below, and we need to rename all layers containing the first three characters from ABC to XYZ.
ABC-DE-1
ABC-DE-2
ABC-FG-1
ABC-FG-2
PQR-DE-1
PQR-FG-1
Type REN and press enter to start rename command then select layers from the “Named Objects” panel.
Now type ABC* in the Old Name field of Rename window, you will notice that all layers with the first three characters as ABC will be highlighted in the Items panel.
Type XYZ* in the Rename To field of the window.
This syntax will rename all layers with the first three characters from ABC to XYZ keeping the remaining characters in the name unchanged.
Click on Rename To button to apply changes and all selected layers will be renamed to XYZ prefix.
You can also rename characters from the middle of theย layer name.
For example, if we want to change theย name of Layers with 5th and 6th characters from FG to LM then we need to typeย ???-FG* in theย old name field and ???-LM* in Rename To field.
In this syntax first threeย question marks indicate that the first three characters could be anything then the fourth character should be a dash.
On 5th and 6th place it should be FG and then * indicates that the remaining characters could be anything again.
Conclusion
As you can see renaming named objects is very easy and straightforward forward and changing the name of blocks, layers, views and other named objects in bulk using wildcard characters.
Let me know in the comments below if you use the REN command or other methods of renaming named objects.
Hi Jaiprakash. Can you tell me the common uses that naming a block has? Can I use the block name as a field or attribute to populate a title bloc for example?
Just saved me hours of tedious layer name changing. Thank you
USE FIND AND REPLACE COMMAND (CTRL+F)
How to rename the words coming at the end of a block or layer?? For eg. If I have a multiple block that ends with “elevation” that I want to chenge to “elevation-01”
Thanks
There is no option in AutoCAD which can do this but you can make a script for doing this.