Quickly Link Excel Tables to AutoCAD

by Donnie Gladfelter on August 15, 2007

in AutoCAD 2008

Since being posted back in April my post titled Linking Excel and AutoCAD with Data Links has been one of the most visited pages here on The CAD Geek Blog. In that post I go through what I will call the manual way of linking an Excel table to AutoCAD. Thus unless you are a part of the Slowskey family, you’ll likely prefer this quicker more efficient way of making the link.

  1. Start off in Excel by simply selecting the cells you want to link to AutoCAD. Right-click and select “Copy“. This will place the Excel table on your clipboard so we can paste it into AutoCAD.
  2. Open the AutoCAD drawing you wish to insert your Excel table into, and go to the “Edit” menu, selecting “Paste Special”.
  3. From the resulting dialog box, Select the “Paste Link” radio button, and then select “AutoCAD Entities” under the “As” heading.

Select an insertion point for your table, and just like that you have a table which is linked to AutoCAD. If you have “DYN” turned on (available from status bar) you will see some helpful information when you hover over the table.

First notice the two icons in the Northeast quadrant of your cursor. The padlock icon to the left indicates that the table is locked. What that means is changes to the Excel document will be updated in AutoCAD as well, however you cannot make a change in AutoCAD and it update Excel. The second icon is supposed to be two chain links. That is letting you know the table contents are being red from an external Excel table.

Finally if you have dynamic input (DYN) turned on the southeast quadrant of your cursor will show some information about the data link associated with the table. AutoCAD automatically generates a Data Link when you use the Paste Special method, hence the Excel Data Link 1 name. Other information like the path to the linked Excel table and what cells are being displayed is among the data previewed.

While AutoCAD does have the ability to write back to Excel, I have found the methodology in doing such to be very cumbersome. Instead, I have found it easier to modify the Excel table by opening the Excel document itself. This is relatively easy to do within AutoCAD by:

  1. Select a cell within your AutoCAD Table
  2. Under “Data Links” select “Open Data File“. That will load Excel, and take you to the linked Excel document.

In my humble opinion that method is a lot easier than unlocking the cell(s) you want to modify, changing the data, and then writing back to the data source. Finally if you’re in a drawing, and the Excel document gets modified. AutoCAD will not update the table in real-time. You could close and re-open the drawing, but a little easier method is to select the table > right-click > “Update Table Data Links”.

  • Kerwin

    How come the table lines are printed in gray color other than solid black line when creating dwf file?

  • Kerwin

    How come the table lines are printed in gray color other than solid black line when creating dwf file?

  • Freddy

    Nice article.
    You don’t tell how to update the data link from AutoCAD. I have unlocked all the cells in AutoCAD and tried to use the DATALINKUPDATE command. Selected Write data link and chosen the AutoCAD table but I get only this message:

    1 data link(s) do not allow their data to be written out.

    Do you know why?

    \Freddy

  • Freddy

    Nice article.
    You don’t tell how to update the data link from AutoCAD. I have unlocked all the cells in AutoCAD and tried to use the DATALINKUPDATE command. Selected Write data link and chosen the AutoCAD table but I get only this message:

    1 data link(s) do not allow their data to be written out.

    Do you know why?

    Freddy

  • Chris

    While I find it very handy that imported Excel files will automatically update when pasted properly into AutoCAD 2008, one thing that I have noticed is that all of the Excel Data Links are listed permanently in the drawing file as External References. Even when I have deleted an Excel link from a drawing that is no longer required, there is still a record of it shown in the External References list (Status will read “Not Found”). Is there any way to delete unused Excel Data link records from the External References Window?

  • Chris

    While I find it very handy that imported Excel files will automatically update when pasted properly into AutoCAD 2008, one thing that I have noticed is that all of the Excel Data Links are listed permanently in the drawing file as External References. Even when I have deleted an Excel link from a drawing that is no longer required, there is still a record of it shown in the External References list (Status will read “Not Found”). Is there any way to delete unused Excel Data link records from the External References Window?

  • Sam

    I’ve been using the Data Links manager to input excel tables- they operate very similarly to the PASTESPEC method. However, I am running into a formatting issue. My row height is locked to some arbitrary value and nothing I change in excel modifies it, but the column width changes according to the excel file. Any ideas where I can find this setting and modify the row height value without having to manually change the height of all the table rows?

  • Sam

    I’ve been using the Data Links manager to input excel tables- they operate very similarly to the PASTESPEC method. However, I am running into a formatting issue. My row height is locked to some arbitrary value and nothing I change in excel modifies it, but the column width changes according to the excel file. Any ideas where I can find this setting and modify the row height value without having to manually change the height of all the table rows?

  • christina

    Once the excel spreadsheet is in the dwg – formatting is next to impossible. cells containing data derived from formulas in excel import into cad as txt font, the rest in arial, plus a decimal and 4 zeros. my favorite trick match properties is useless and the decimal and zeros won’t delete! am i missing something obvious?

  • christina

    Once the excel spreadsheet is in the dwg – formatting is next to impossible. cells containing data derived from formulas in excel import into cad as txt font, the rest in arial, plus a decimal and 4 zeros. my favorite trick match properties is useless and the decimal and zeros won’t delete! am i missing something obvious?

Previous post:

Next post: