- •About the Authors
- •Dedication
- •Authors’ Acknowledgments
- •Table of Contents
- •Introduction
- •What’s Not (And What Is) in This Book
- •Mac attack!
- •Who Do We Think You Are?
- •How This Book Is Organized
- •Part I: AutoCAD 101
- •Part II: Let There Be Lines
- •Part III: If Drawings Could Talk
- •Part IV: Advancing with AutoCAD
- •Part V: On a 3D Spree
- •Part VI: The Part of Tens
- •But wait . . . there’s more!
- •Icons Used in This Book
- •A Few Conventions — Just in Case
- •Commanding from the keyboard
- •Tying things up with the Ribbon
- •Where to Go from Here
- •Why AutoCAD?
- •The Importance of Being DWG
- •Seeing the LT
- •Checking System Requirements
- •Suddenly, It’s 2013!
- •AutoCAD Does Windows (And Office)
- •And They’re Off: AutoCAD’s Opening Screens
- •Running with Ribbons
- •Getting with the Program
- •Looking for Mr. Status Bar
- •Let your fingers do the talking: The command window
- •The key(board) to AutoCAD success
- •Keeping tabs on palettes
- •Down the main stretch: The drawing area
- •Fun with F1
- •A Simple Setup
- •Drawing a (Base) Plate
- •Drawing rectangles on the right layers
- •Circling your plate
- •Nuts to you
- •Getting a Closer Look with Zoom and Pan
- •Modifying to Make It Merrier
- •Hip-hip-array!
- •Stretching out
- •Crossing your hatches
- •Following the Plot
- •A Setup Roadmap
- •Choosing your units
- •Weighing up your scales
- •Thinking annotatively
- •Thinking about paper
- •Defending your border
- •A Template for Success
- •Making the Most of Model Space
- •Setting your units
- •Making the drawing area snap-py (and grid-dy)
- •Setting linetype and dimension scales
- •Entering drawing properties
- •Making Templates Your Own
- •Setting Up a Layout in Paper Space
- •Will that be tabs or buttons?
- •View layouts Quick(View)ly
- •Creating a layout
- •Copying and changing layouts
- •Lost in paper space
- •Spaced out
- •A view(port) for drawing in
- •About Paper Space Layouts and Plotting
- •Managing Your Properties
- •Layer one on me!
- •Accumulating properties
- •Creating new layers
- •Manipulating layers
- •Using Named Objects
- •Using AutoCAD DesignCenter
- •Copying layers between drawings
- •Controlling Your Precision
- •Keyboard capers: Coordinate input
- •Understanding AutoCAD’s coordinate systems
- •Grab an object and make it snappy
- •Other Practical Precision Procedures
- •Introducing the AutoCAD Drawing Commands
- •The Straight and Narrow: Lines, Polylines, and Polygons
- •Toeing the line
- •Connecting the lines with polyline
- •Squaring off with rectangles
- •Choosing your sides with polygon
- •(Throwing) Curves
- •Going full circle
- •Arc-y-ology
- •Solar ellipses
- •Splines: The sketchy, sinuous curves
- •Donuts: The circles with a difference
- •Revision clouds on the horizon
- •Scoring Points
- •Commanding and Selecting
- •Command-first editing
- •Selection-first editing
- •Direct object manipulation
- •Choosing an editing style
- •Grab It
- •One-by-one selection
- •Selection boxes left and right
- •Perfecting Selecting
- •AutoCAD Groupies
- •Object Selection: Now You See It . . .
- •Get a Grip
- •About grips
- •A gripping example
- •Move it!
- •Copy, or a kinder, gentler Move
- •A warm-up stretch
- •Your AutoCAD Toolkit
- •The Big Three: Move, Copy, and Stretch
- •Base points and displacements
- •Move
- •Copy
- •Copy between drawings
- •Stretch
- •More Manipulations
- •Mirror
- •Rotate
- •Scale
- •Array
- •Offset
- •Slicing, Dicing, and Splicing
- •Trim and Extend
- •Break
- •Fillet and Chamfer and Blend
- •Join
- •When Editing Goes Bad
- •Zoom and Pan with Glass and Hand
- •The wheel deal
- •Navigating your drawing
- •Controlling your cube
- •Time to zoom
- •A View by Any Other Name . . .
- •Looking Around in Layout Land
- •Degenerating and Regenerating
- •Getting Ready to Write
- •Simply stylish text
- •Taking your text to new heights
- •One line or two?
- •Your text will be justified
- •Using the Same Old Line
- •Turning On Your Annotative Objects
- •Saying More in Multiline Text
- •Making it with Mtext
- •It slices; it dices . . .
- •Doing a number on your Mtext lists
- •Line up in columns — now!
- •Modifying Mtext
- •Gather Round the Tables
- •Tables have style, too
- •Creating and editing tables
- •Take Me to Your Leader
- •Electing a leader
- •Multi options for multileaders
- •How Do You Measure Up?
- •A Field Guide to Dimensions
- •The lazy drafter jumps over to the quick dimension commands
- •Dimension associativity
- •Where, oh where, do my dimensions go?
- •The Latest Styles in Dimensioning
- •Creating and managing dimension styles
- •Let’s get stylish!
- •Adjusting style settings
- •Size Matters
- •Details at other scales
- •Editing Dimensions
- •Editing dimension geometry
- •Editing dimension text
- •Controlling and editing dimension associativity
- •Batten Down the Hatches!
- •Don’t Count Your Hatches. . .
- •Size Matters!
- •We can do this the hard way. . .
- •. . . or we can do this the easy way
- •Annotative versus non-annotative
- •Pushing the Boundary (Of) Hatch
- •Your hatching has no style!
- •Hatch from scratch
- •Editing Hatch Objects
- •You Say Printing, We Say Plotting
- •The Plot Quickens
- •Plotting success in 16 steps
- •Get with the system
- •Configure it out
- •Preview one, two
- •Instead of fit, scale it
- •Plotting the Layout of the Land
- •Plotting Lineweights and Colors
- •Plotting with style
- •Plotting through thick and thin
- •Plotting in color
- •It’s a (Page) Setup!
- •Continuing the Plot Dialog
- •The Plot Sickens
- •Rocking with Blocks
- •Creating Block Definitions
- •Inserting Blocks
- •Attributes: Fill-in-the-Blank Blocks
- •Creating attribute definitions
- •Defining blocks that contain attribute definitions
- •Inserting blocks that contain attribute definitions
- •Edit attribute values
- •Extracting data
- •Exploding Blocks
- •Purging Unused Block Definitions
- •Arraying Associatively
- •Comparing the old and new ARRAY commands
- •Hip, hip, array!
- •Associatively editing
- •Going External
- •Becoming attached to your xrefs
- •Layer-palooza
- •Creating and editing an external reference file
- •Forging an xref path
- •Managing xrefs
- •Blocks, Xrefs, and Drawing Organization
- •Mastering the Raster
- •Attaching a raster image
- •Maintaining your image
- •Theme and Variations: Dynamic Blocks
- •Lights! Parameters!! Actions!!!
- •Manipulating dynamic blocks
- •Maintaining Design Intent
- •Defining terms
- •Forget about drawing with precision!
- •Constrain yourself
- •Understanding Geometric Constraints
- •Applying a little more constraint
- •AutoConstrain yourself!
- •Understanding Dimensional Constraints
- •Practice a little constraint
- •Making your drawing even smarter
- •Using the Parameters Manager
- •Dimensions or constraints — have it both ways!
- •The Internet and AutoCAD: An Overview
- •You send me
- •Send it with eTransmit
- •Rapid eTransmit
- •Bad reception?
- •Help from the Reference Manager
- •Design Web Format — Not Just for the Web
- •All about DWF and DWFx
- •Autodesk Design Review 2013
- •The Drawing Protection Racket
- •Autodesk Weather Forecast: Increasing Cloud
- •Working Solidly in the Cloud
- •Free AutoCAD!
- •Going once, going twice, going 123D
- •Your head planted firmly in the cloud
- •The pros
- •The cons
- •Cloudy with a shower of DWGs
- •AutoCAD 2013 cloud connectivity
- •Tomorrow’s Forecast
- •Understanding 3D Digital Models
- •Tools of the Trade
- •Warp speed ahead
- •Entering the third dimension
- •Untying the Ribbon and opening some palettes
- •Modeling from Above
- •Using 3D coordinate input
- •Using point filters
- •Object snaps and object snap tracking
- •Changing Planes
- •Displaying the UCS icon
- •Adjusting the UCS
- •Navigating the 3D Waters
- •Orbit à go-go
- •Taking a spin around the cube
- •Grabbing the SteeringWheels
- •Visualizing 3D Objects
- •Getting Your 3D Bearings
- •Creating a better 3D template
- •Seeing the world from new viewpoints
- •From Drawing to Modeling in 3D
- •Drawing basic 3D objects
- •Gaining a solid foundation
- •Drawing solid primitives
- •Adding the Third Dimension to 2D Objects
- •Creating 3D objects from 2D drawings
- •Modifying 3D Objects
- •Selecting subobjects
- •Working with gizmos
- •More 3D variants of 2D commands
- •Editing solids
- •Get the 2D Out of Here!
- •A different point of view
- •But wait! There’s more!
- •But wait! There’s less!
- •Do You See What I See?
- •Visualizing the Digital World
- •Adding Lighting
- •Default lighting
- •User-defined lights
- •Sunlight
- •Creating and Applying Materials
- •Defining a Background
- •Rendering a 3D Model
- •Autodesk Feedback Community
- •Autodesk Discussion Groups
- •Autodesk’s Own Bloggers
- •Autodesk University
- •The Autodesk Channel on YouTube
- •The World Wide (CAD) Web
- •Your Local ATC
- •Your Local User Group
- •AUGI
- •Books
- •Price
- •3D Abilities
- •Customization Options
- •Network Licensing
- •Express Tools
- •Parametrics
- •Standards Checking
- •Data Extraction
- •MLINE versus DLINE
- •Profiles
- •Reference Manager
- •And The Good News Is . . .
- •APERTURE
- •DIMASSOC
- •MENUBAR
- •MIRRTEXT
- •OSNAPZ
- •PICKBOX
- •REMEMBERFOLDERS
- •ROLLOVERTIPS
- •TOOLTIPS
- •VISRETAIN
- •And the Bonus Round
- •Index
Chapter 17: The ABCs of Blocks 379
Attributes: Fill-in-the-Blank Blocks
You may think of attributes as the good (or bad) qualities of your significant other, but in AutoCAD, attributes are fill-in-the-blank text fields that you can add to your blocks. When you create a block definition and then insert it several times in a drawing, all the ordinary geometry (lines, circles, regular text strings, and so on) in all the instances are exactly identical. Attributes provide a little more flexibility in the form of text strings that can be different in each block reference.
For example, suppose that you frequently designate parts in your drawings by labeling them with a distinct number or letter in a circle for each part. If you want to create a block for this symbol, you can’t simply draw the number or letter as regular text by using the MTEXT or TEXT command. If you create a block definition with a regular text object (for example, the letter A), the text string will be the same in every instance of the block (always the letter A). That’s not much help in distinguishing the parts!
Instead, you create an attribute definition, which acts as a placeholder for a text string that can vary each time you insert the block. You include the attribute definition when you create the block definition. (Refer to the “Creating Block Definitions” section, earlier in this chapter.) Then each time you insert the block, AutoCAD prompts you to fill in an attribute value for each attribute definition.
When they were first introduced, and for a long time afterward, block attribute values were limited to a single line of variable text with a maximum of 255 characters. AutoCAD 2008 and later supports multiline attributes; as well as offering more than one line, multiline attributes have many of the formatting options of multiline text. For more information on creating and inserting blocks with multiline attributes, look up Define Block Attributes in the online help system.
The AutoCAD documentation and dialog boxes often use the term attribute to refer indiscriminately to an attribute definition or an attribute value. We attribute a lot of the confusion about attributes to this sloppiness. Just remember that an attribute definition is the text field or placeholder in the block definition, and an attribute value is the specific text string that you type when you insert the block.
Creating attribute definitions
You use the Attribute Definition dialog box to create attribute definitions (clever, eh?). The procedure is similar to creating a text string except that you must supply a little more information. Create attribute definitions with the following steps:
www.it-ebooks.info
380 Part IV: Advancing with AutoCAD
1.Change to the layer on which you want to create the attribute definition.
2.Choose Define Attributes on the Home tab’s Block panel slideout to run the ATTDEF command.
The Attribute Definition dialog box appears, as shown in Figure 17-4.
You rarely need to use any of the first four Mode settings (Invisible, Constant, Verify, or Preset). Just leave them deselected. If you’re curious about what the modes do, hover your mouse pointer over an item; if that doesn’t give you enough information, use the dialog box Help button to find out more.
Figure 17-4: The Attribute Definition dialog box.
3.Select or deselect the Lock Position check box.
If Lock Position is selected, the attributes can’t be relocated within the block reference — the whole thing is treated as a single object. Deselecting Lock Position allows attributes to be moved by dragging their grips, without moving the block reference as a whole.
4.Select or deselect the Multiple Lines check box.
Selecting Multiple Lines in the Mode area disables the Default text box and displays a button to open the Multiline Editor. By default, you don’t get the whole panoply of formatting options that you get in the MTEXT command’s In-Place Text Editor, but you can overscore or underscore text;
www.it-ebooks.info
Chapter 17: The ABCs of Blocks 381
and from a right-click menu, you can import text, assign a background mask, or choose from a number of other options. Setting the value of the system variable ATTIPE to 1 enables all formatting options in the In-Place Text Editor, See the online help system for more information.
5. In the Attribute area, type values for the tag (the unique identifier for the attribute), the user prompt, and the default value.
The name you type into the Tag text box can’t contain any spaces. The Prompt and Default text boxes may contain spaces, though.
Attribute values can include fields that automatically update, such as date, filename, or system variable settings. Click the Insert Field button to the right of the Default text box to insert a field. See Chapter 13 for more information on fields.
6.(Optional) If you select the Multiple Lines check box in Step 4, click the Multiline Editor button (it shows three periods) to enter the multiline default attribute value and add any formatting; then click OK.
The value you enter here is the default text stored in the attribute definition, and you can change it when you insert the block.
7.In the Text Settings area, specify the Justification, Text Style, Annotative property, Text Height, Rotation, and Boundary Width (the last for multiline attributes only).
The text properties for attribute definitions are the same as those for text objects — see Chapter 13.
8.Select Specify On-Screen to choose an insertion point for the attribute definition.
An attribute definition’s insertion point is like a text string’s base point. Remember to use snap, object snap, or another precision tool if you want the eventual attribute values to be located at a precise point.
9.Click OK to create the attribute definition.
10.Repeat Steps 1 through 9 for any additional attribute definitions.
If you need to create a series of attribute definitions in neat rows, create the first one by using Steps 1 through 9 and then select the Align Below Previous Attribute Definition check box for the subsequent definitions.
To make a series of nonadjacent attributes, create the first one by using Steps 1 through 9 and then copy the first attribute definition and edit the copy with the Properties palette. You can prevent your attributes from being dragged around the block by selecting the Lock Position check box in the Attribute Definition dialog box.
www.it-ebooks.info
382 Part IV: Advancing with AutoCAD
Defining blocks that contain attribute definitions
After you create one or more attribute definitions — and any other geometry that you want to include in the block — you’re ready to create a block definition that contains them. Follow the steps in the section “Creating Block Definitions,” earlier in this chapter.
At Step 4 in the section “Creating Block Definitions,” you can select any attribute definitions before or after you select the other geometry. However, you should select each attribute definition one by one (clicking each attribute definition rather than selecting multiple attributes with a selection window) in the order that you want the attribute value prompts to appear in the Edit Attributes dialog box (see Figure 17-5 in the next section). If you don’t select the attributes one by one, your block and attributes will still work, but the order of the attribute prompts in the Edit Attributes dialog box may not be what you want.
You can use the Block Attribute Manager to reorder the attribute definitions in a block definition. Choose Attribute, Block Attribute Manager on the Home tab’s Block panel slideout. You also can use this dialog box to edit other attribute definition settings, such as the prompt, text style, or layer.
Inserting blocks that contain attribute definitions
After you create a block definition that contains attribute definitions, you insert it just like any other block. Follow the steps in the section “Inserting Blocks,” earlier in this chapter. At the end of the steps, AutoCAD displays the Edit Attributes dialog box, as shown in Figure 17-5. The dialog box contains one row for each of the attribute definitions and has any default values filled in. You simply edit the values and then click OK.
The ATTDIA (ATTribute DIAlog box) system variable controls whether AutoCAD prompts for attribute values in a dialog box (ATTDIA=1) or at the command line (ATTDIA=0). If you insert a block and see command-line
prompts for each attribute value, type a value and press Enter for each attribute value you want to set. When you return to the command prompt, type ATTDIA, press Enter, type 1, and press Enter again. When you insert blocks with attributes into this drawing in the future, AutoCAD displays the Edit Attributes dialog box instead of prompting you at the command line.
www.it-ebooks.info