LESSON 2-6
| |
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. ![]() ![]() 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.
Insert a computer block and then explode it (type X 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. ![]() 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 theAlign below previous attribute checkbox.
Once all the attributes are created you should have something like this: ![]() 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
After inserting the block and answering all the prompts, your block should look like this:Specify insertion point or [Scale/X/Y/Z/Rotate/PScale/PX/PY/PZ/PRotate]: Enter attribute values What is the CPU Speed What is the monitor size What is the capacity of the Hard Drive How much ram is installed ![]() 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: ![]() DISPLAYING ATTRIBUTES: Sometimes you don't want to see the attribute values displayed (say for plotting). You can turn them off. This can be done by typing in the commandATTDISP 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: ![]() ![]() ![]() Start the Attribute Extraction dialog again (EATTEXT) and choose this option on step 4 to write the data to an external file instead of a table in the drawing. ![]() You can view the data in Notepad, or a spreadsheet program like Excel (as shown below) ![]() Extra Practice: Here is an exercise for creating a title block with attributes. This is a handy item to have. It allows you to quickly enter the data for the title block using attributes, rather than create text every time. |















No comments:
Post a Comment
Note: Only a member of this blog may post a comment.