ellen finkelstein logo

Ellen Finkelstein.com
AutoCAD PowerPoint About Links
       

Over 165 AutoCAD tips and tutorials!

AutoCAD Tips
AutoCAD Tips Blog

Get a free dynamic block tutorial and free AutoCAD tips!


RSS: What is it? Why do I want it? How do I get it?

Add to My Yahoo!
Subscribe with Bloglines

Buy a Book

E-mail This Page 
to a Friend

Submit a tip! If you include your name and I post your tip, I'll give you credit.

AutoCAD Tips & Tutorials

AutoCAD tutorial: Extract attributes

Blocks can contain attributes, which are labels with properties. For example, you can use attributes to attach price and manufacturer information to a block of an office chair. At the bottom of this tip, I link to a tutorial on creating attributes.

Once you have the attributes, you can extract them to a simple database and open that database in Microsoft Excel, for example, or insert it as a table in your drawing.

Follow these steps to extract attributes:

  1. Choose Tools>Data Extraction to open the Data Extraction Wizard. (In 2009, choose Blocks & References tab> Linking & Extraction panel> Extract Data.)
  2. On the Begin page, choose the Create a New Data Extraction option, and click Next.
  3. The Save Data Extraction As dialog box opens. You need to save the extraction as a DXE file. Enter a file name, navigate to a location, and click Save.
  4. On the Define Data Source page, you can choose the Drawings/Sheet Set option which lets you extract from multiple drwaings, or the Select Objects in the Current Drawing option. For this tutorial, choose the latter option.

extract attributes in AutoCAD-

  1. Click the Select Objects in the Current Drawing button select objects to return to your drawing and select objects. You can select everything in the drawing if you want. When you end selection, you return to the wizard. Click Next.
  2. On the Select Objects page, start at the bottom to specify which types of objects you want to display. In most cases, you can uncheck the Display All Object Types check box and check the Display Blocks with Attributes Only check box. Click Next.

extract attributes in AutoCAD

  1. On the Select Properties page, you choose which properties of the objects you want to include. The point here is that you can extract more than just the attributes you created. Here, I chose Attribute and Geometry from the Category list. specifically, I chose Position X and Y geometry properties. Click Next.

extract attributes in AutoCAD

  1. On the Refine Data page, you can specify how your data will appear. You can set sorting options and include links to external data. I unchecked the Show Count Column, because it just showed 1 for each block instance. Click Next.

Refine Data - extract attributes in AutoCAD

  1. On the Choose Output page, you can insert the results as a table in your drawing, output it to a file (XLS, CSV, MDB, OR TXT), or both. Choose the option(s) you want. If you choose to output to a file, click the ellipsis button below that option. The Save As dialog box opens. Enter a file name, choose the file type, navigate to a location, and click Save. Click Next.

extract attributes in AutoCAD

  1. On the Finish page, click Finish. If you chose the table option, you get a prompt for an insertion point.

Here's the drawing with the 3 blocks and their attributes, as well as the database in Excel.

extract attributes in AutoCAD

extract attributes in AutoCAD

Related tips

Create attributes
Write blocks to save them as separate files
Customjize extracted attribute headings

More Tips

+

101 Tips

Page copy protected against web site content infringement by Copyscape

Books by Ellen

New!
AutoCAD 2009 and AutoCAD LT 2009 Bible

This is the 9th edition of this book! Completely updated to conform to the new interface and, of course, it covers all the new features, such as the ribbon, Quick View, ShowMotion, the View Cube, the SteeringWheel, and more.

AutoCAD 2008 and AutoCAD LT 2008 Bible
Learn the great new features with wide application to all disciplines. Get the most comprehensive book on AutoCAD! DVD contains a 30-day trial of AutoCAD and AutoCAD LT. Thorough exercises guide you through each feature.

AutoCAD 2007 and AutoCAD LT 2007 Bible 
Discover the 2007 features, especially the radically improved 3D tools. CD has AutoCAD 30-day trial, 3rd-party software, and drawings for exercises.

AutoCAD 2006 and AutoCAD LT 2006 Bible 
Understand and use the 2006 features, including dynamic blocks and the new method of customizing menus and toolbars. CD-ROM has AutoCAD trial, software, and drawings for all exercises.


AutoCAD 2005 and AutoCAD LT 2005 Bible
Fully explains latest 2005 features:  tables, fields, and sheet sets. For the first time, covers AutoCAD LT! CD-ROM comes with software and drawings for all exercises.


AutoCAD 2004 Bible

Covers all features in detail. Hands-on exercises. Over 1300 pages + CD-ROM with software and drawings for all exercises.

                                  Home  |  AutoCAD  |  PowerPoint  | E-StoreAbout  | Links | Contact | Site Map
Copyright Ellen Finkelstein, Inc.