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.
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:
- Choose Tools>Data Extraction to open the Data Extraction Wizard. (In 2009, choose Blocks & References tab> Linking & Extraction panel> Extract Data.)
- On the Begin page, choose the Create a New Data Extraction option, and click Next.
- 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.
- On the Define Data Source page, you can choose the Drawings/Sheet Set option which lets you extract from multiple drawings, or the Select Objects in the Current Drawing option. For this tutorial, choose the latter option.
- Click the Select Objects in the Current Drawing button 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.
- 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.
Did you find this tip helpful?
Don't miss new tips!
Plus get a free Dynamic Blocks tutorial
Enter your name and email below
- 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.
- 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.
- 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.
- 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.