I received a question about how to replace one block with another block. Replacing blocks is useful for 3 reasons:
- To create multiple versions of a drawing, each with a different block. For example, you could try out a floor plan with different desks.
- When your company replaces one part with another part
- If your drawing is very complex, to reduce regeneration time, by replacing a complex block with a simpler one. Of course, before plotting, you would reverse the replacement.
There are two methods to replace one block with another.
Use Express Tools BLOCKREPLACE
This Express Tool lets you replace one block with another globally in a drawing. Follow these steps:
- Make sure that the new block you want to insert is defined in the drawing. (If necessary, insert it to check.)
- Choose Express> Blocks> Replace Block with Another Block or enter blockreplace on the command line.
- In the BLOCKREPLACE dialog box, choose the block that you want to replace from the list of blocks in the drawing.
- Click OK.
- Still in the dialog box, choose the block that you want to use to replace the original block.
Did you find this tip helpful?
Don't miss new tips!
Plus get a free Dynamic Blocks tutorial
Enter your name and email below
- Click OK.
- At the Purge unreferenced items when finished? <Y>: prompt, enter y or n.
- You see a message, n blocks replaced. Results may not be apparent until next regen. If necessary, do a regen. (In my test, I didn’t need to regenerate the drawing to see the new block.)
Use the -INSERT command
This older method allows you to replace a block in your drawing with a file. If necessary, first use the WBLOCK command to export the new block to a file. Follow these steps:
- Type -insert on the command line.
- At the Enter block name or [?] <square plate>: prompt, enter blockname=filename, where blockname is the name of the block in your drawing and filename is the name of the file containing the block you want to use. If the file is not in the support file search path, type the entire path. (You don’t need to add .dwg.) Press Enter. For example:
- At the Block “square plate” already exists. Redefine it? [Yes/No] <N>: prompt, enter y and press Enter. You see the message: Block “square plate” redefined (with your block name inserted).
- At the Specify insertion point or [Basepoint/Scale/X/Y/Z/Rotate]: prompt, press Esc to not insert a copy of the new file; all you want to do is redefine the old block.
Here, I replaced the square plate block with the plate block, which was in plate.dwg.
Before the replacement:
After the replacement: