Wednesday, November 28, 2007

Getting Excel into AutoCAD

There are many times when it is necessary to import spreadsheet data into AutoCAD. This is easily accomplished with the standard Windows tools CUT and PASTE. However there are limitations to the quality of the inserted data. The OLE insertion is neither editable nor linkable (correction: it IS linkable, see comments). The technique in this write-up allows for both.

CUT and PASTE SPECIAL

1. Create Excel file as you normally would.
2. Select the rows, columns and cells that you want to insert into your AutoCAD drawing.
3. Right-click and select Format Cells. In the FONT tab, ensure that the “Normal Font” box is checked solid (not grayed out). See Figure 1.

  • Note: If you intend to keep the original Excel spreadsheet format, do NOT save the spreadsheet after this step.

  • Correct way

    Incorrect way

    Figure 1: Format Cells


    4. Click OK and then copy selection (right-click > Copy or CTRL-C)
    5. In AutoCAD, if not already done, set up your TABLE per standards. This includes text style, height, color and alignment. Column and row settings do not matter, as this technique allows for small or large spreadsheets.
    6. Select Edit > Paste Special. (Figure 2)


    Figure 2


    7. Choose “AutoCAD Entities” (Figure 3)


    Figure 3: The Paste Special Dialog Box

    8. The only thing that needs to be done is to apply the Title and Header properties. This is easily done with the following steps:
  • Create a new temporary table.
  • Activate the Title or Header cell.
  • Right-click and select Match Cell.
  • Click appropriate cell in inserted table.
  • Delete temporary table
  • Tuesday, November 27, 2007

    The TEXTTOFRONT command

    This command is basically DRAW ORDER for text. And the beauty is that it works for ALL text at the same time PLUS it has an option for dimensions as well! No more hunting. :)

    Give it a try.

    *Added tip: Change your pgp file to make this command TTF.