Categories

AutoCAD 2012 & AutoCAD LT 2012 Bible

The most comprehensive AutoCAD book around!

AutoCAD 2012 Bible

Replace one block with another

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:

  1. Make sure that the new block you want to insert is defined in the drawing. (If necessary, insert it to check.)
  2. Choose Express> Blocks> Replace Block with Another Block or enter blockreplace on the command line.
  3. In the BLOCKREPLACE dialog box, choose the block that you want to replace from the list of blocks in the drawing.

  1. Click OK.
  2. Still in the dialog box, choose the block that you want to use to replace the original block.

  1. Click OK.
  2. At the Purge unreferenced items when finished? <Y>: prompt, enter y or n.
  3. 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:

  1. Type -insert on the command line.
  2. 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:

square plate=c:\drawings\plate

  1. 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).
  2. 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:

Related posts:

  1. Substitute one block for another
  2. Align a block to other objects with a dynamic block Alignment parameter
  3. Redefining a block without losing your insertion point
  4. Select a block before a writeblock or edit
  5. XPlode a block

3 comments to Replace one block with another

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>