A friend ask me if there is a quicker way to insert Autocad blocks in replacement to the circles in his drawing instead of inserting the block one by one manually. I answered him, “Yes, there is.”

Instead of inserting the new block one at a time, why don’t we create a lisp and automate the tedious block insertion process. By using the center point of the circles, we can create a lisp routine that will make a block and insert it in the specific center point of the circle auto-magically! This will save you many hours of drafting time compare to doing it the traditional way. If you have 3-4 circles to be replaced by block then that is tolerable but what if you have thousands of circles – that will surely be a tough job.

autocad-mep-2008-electrical-device

Here let me share you how to shortcut this long traditional method of inserting block on the centerpoint of each circle.

First, we have to create a lisp routine that is capable of converting multiple circles to block and insert it in the circle’s centerpoint automatically. Then, we will load that lisp to your autocad drawing and with a single command ^puff^ your circles will become blocks. You may use this block later so you can convert this to Electrical Device, change the symbology or whatever autocad mep 2008 manipulation you want to do.

Create the Circle-to-Block Autolisp:

  • Open notepad.exe
  • Copy and paste this code.
  • In the notepad, saveas the file inside the folder where you want the lisp to be stored.
  • Specify filename, e.g. RepCir2Blk.lsp (Don’t forget the “.lsp” extension”
  • Click saveas type, choose “All files”.
  • Hit the save button.

The Replace Circle to Block (RerCir2Blk) in action

  • Open the autocad file that contains the circles you want to convert to blocks.
  • In the command box, type “appload”
  • Browse and load the RepCir2Blk lisp you created in step 4 above. (here is my lsp, in case you want to use this.  Just right click, “save target as”)
  • Once the lisp is loaded, close the Load/Upload application dialog box
  • You can now use convert circles to block simultaneously, by running the command: RepCir2Blk.

If in your first attempt the steps here didn’t work, I suggest you repeat step one and follow the procedure carefully.

This technique is very useful specially if you are working in Autocad MEP 2008. Most of the time you’ll receive drawings from consultant or from third party for MEP detailed drawings. There are those who provide the drawing in plain autocad with the drawing blocks intact, but there are cases where you’ll receive drawings with exploded content. Electrical symbols, upright and downright sprinklers might be represented with plain circles. In this case converting those circles to Autocad MEP device or mvpart will be forever, as you are going to insert the device or mvpart one by one . But if they are in block then there is a simple procedures that will easily convert these Autocad blocks into device or sprinkler mvparts with less hassle.

You’ll know how to do it in my coming post. so Stay tuned.

If you think this tip is useful then don’t be shy to share it to others. You might as well subscribe our feed via email so you’ll receive the latest Autocad MEP tips and tricks to your inbox, or subscribe via your favorite feedreader.

Help me spread the words, Share and Enjoy:
  • Digg
  • Reddit
  • StumbleUpon
  • Technorati
  • Spurl
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Slashdot
  • TwitThis
  • NewsVine
  • IndianPad
  • SphereIt
  • HealthRanker
  • TailRank
  • blinkbits