myCADsite Logo
Welcome to myCADsite.com
Here you will find some useful tips and tutorials to help you in your daily CAD work or get you started today.
   
 
 
Home
Tutorials
Downloads
Surveys
Links
Samples
Guestbook
Etc.
   
     
 

LESSON 2-6

LESSON 2-1

PLANNING A PROJECT

LESSON 2-2

ZOOMING AND PANNING

LESSON 2-3

FORMATTING TEXT

LESSON 2-4

LAYOUT TABS (PAPER SPACE AND MODEL SPACE)

LESSON 2-5

BLOCKS

LESSON 2-6

ATTRIBUTES

LESSON 2-7

POLYLINES

LESSON 2-8

HATCHING


Notes about these lessons:

Most regular text is in burgundy on these pages. Anything you see on AutoCAD's command line is in blue Courier font. Important terms are usually highlighted in red and will also have hyper links attached. Whenever you see a More Info icon, click on it for more information.


Topics covered in this Lesson:

Block Attributes: Creating | Displaying | Extracting | Editing


ATTRIBUTES

So far in using AutoCAD you have created geometry: lines, circles, etc. You have also added things such as text and dimensions. All of these things could also be done by hand, so what else does CAD have to offer?

As noted at the beginning of Level 1, AutoCAD is also a database of information. Most of that database contains the information for reproducing what you have drawn, but you can also add information that is non-graphical. One of the easiest ways of adding non-graphical information is to use attributes. An attribute is text that can be attached to a block to convey more information than just the geometry on its own could convey.

Look at the two drawings below for an example:

The first example shows some lines and arcs that could be anything.

Couch w/o Attributes

The second example shows the same geometry with the attributes visible so that you see what the shapes represent.

Couch w/ Attributes

The pictures above show a couch. The attributes describe what the model number, color and cost are as well as the manufacturer. From this simple example, you can see that AutoCAD has a useful tool for showing more than just geometry.

This example shows information about furnishings in an office. Once you have drawn the floor plan, you could insert blocks of furniture that have information about the manufacturer, price, weight, and any other information you may need. This information can then be extracted out of AutoCAD and then used in a spreadsheet or other program which could generate a Bill of Materials. You can also use custom programs to use them in the CAD drawing.

In this lesson you will be creating attributes and attaching them to the computer block that you made previously. Like everything you do in AutoCAD, there are particular steps involved when you work with attributes.

  1. First you have to define (or create) the attribute.
  2. Next you will create the block with attributes.
  3. Finally, when you insert the block you will give it the specific information.

Many of the commands that you will be using are tough to remember at first. You may find it easier to use icons (but then the icons look very similar). Pull down menus are another option, so you can see exactly what the command is that you are starting.

Command

Keystroke

Icon

Menu

Result

Define an attribute

DDATTDEF / ATT

Draw > Block >

Define Attribute

Creates an attribute definition

Edit attributes

DDATTE / ATE <

Modify> Object> Attrb.> Single

Edits the contents of an existing attribute

Block

Block / Bmake

Draw > Block >

Make

Creates a block from separate entities and attributes.

Display Atts.

ATTDISP

None

None

Hides or shows attributes

Extract Attributes

EATTEXT
Extract Attributes

Tools > Attribute Extraction...

Extracts attributes using the wizard

Open up the floor plans you drew earlier with the Computer blocks in Lesson 2-5.

Insert a computer block and then explode it (type X <ENTER> and then select the block - press <ENTER>.)

Begin the Attribute definition command: ATT (or) ATTDEF (or) DDATTDEF
(AutoCAD has kept the commands from previous versions active in the new versions.)

Look at the dialog box below. Fill in the edit boxes just like the example. Make sure to adjust the text height if necessary.

Attribute Definition Dialog Box

What you did is give the attribute its definition - a name (tag), a prompt to help the user inserting it, and a (default) value More Info.

Once everything is entered, select the OK button.

When you are back on the drawing screen, pick a point near the middle of the computer block. When you are done, the dialog box comes back so press OK.

Add the following attributes the same way, except instead of picking a point, check off the Align below previous attribute checkbox.

TAG

PROMPT

VALUE

MONITOR

What is the MONITOR SIZE?

XX"

HDD

What capacity is the Hard Drive?

X.XXGB

RAM

How much RAM is installed?

XXXMB

STATION

What station is this

XXX


Once all the attributes are created you should have something like this:

Computer with Attributes

Now create a block that includes your four attributes.

Selecting Attributes Start up the BLOCK command. Create it as shown in the previous lesson. When you are asked for the block name, give it the name COMP-AT.

Insert the block and you will get a dialog box where you can enter the values for the tags. You will be prompted to provide answers to the prompts that you defined in the attributes.

Command: I INSERT
Specify insertion point or [Scale/X/Y/Z/Rotate/PScale/PX/PY/PZ/PRotate]:
Enter attribute values
What is the CPU Speed <XXX GHz>: 2.6 GHz
What is the monitor size <XX">: 21"
What is the capacity of the Hard Drive <XXX Gb>: 200Gb
How much ram is installed <XXX Mb>: 1024Mb

After inserting the block and answering all the prompts, your block should look like this:

Blocks displaying Attribute Values

Now by looking at the drawing, you can see exactly what type of computer it is and what station (location) it is. How much handier is THAT?

DISPLAYING ATTRIBUTES: Sometimes you don't want to see the attribute values displays (say for plotting). You can turn them off. This can be done by typing in the command ATTDISP and then OFF. To turn them back on again, type ATTDISP and ON. It can't get much easier.

EXTRACTING ATTRIBUTES: So now you're wondering what can you do with all of this information. A CAD drawing can be used to track inventory and export that data to another file for others to use. Maybe the purchasing department wants to know what to order, based on the design you are working on.

Exporting the data became MUCH easier in recent versions of AutoCAD.

Start up the EATTEXT command and you will see the wizard dialog box appear. Accept all the defaults and hit the Next button until you get to this step:

Attribute Extraction Wizard

Note that all the attributes are checked - including ones you don't want. Hit the Uncheck All button, then select the ones you want as shown above.

Continue through the wizard and save the data to a CSV file and finish.

You can view the data in Notepad, or a spreadsheet program like Excel (as shown below)

Excel Data

EDITING ATTRIBUTES: Of course, in any project, the data is subject to change. In this example, the company may decide that it cannot afford 24" monitors. You can easily change the value of attributes within a single block insertion by double-clicking on the block. That will bring up this dialog box:

Attribute Editting

Remember that this will only edit the one block that you double-clicked on. If you want to change more than one block at a time to SAME values, you can select the blocks, then right-click and choose properties.

Attribute Properties

In this example, I gave every station 17" monitors (and will be hated by their users for that!)

This is just a simple walkthrough of some of the power of AutoCAD. With more complex drawings and attributes, you can work wonders.

Top of the Page RETURN TO THE TOP OF THE LESSON

TAKE THE QUIZ FOR THIS LESSON

NEXT LESSON: 2-7>>

<< PREVIOUS LESSON: 2-5


   
     
 
Disclaimer
Privacy
Search
Resume
E-mail
   
 

Site is owned and operated by Art Whitton, Las Vegas, NV

Last Update: PST
   
     

Valid HTML 4.01!