8
Preciseliness Is Next to CADliness
In This Chapter
Typing coordinates at the keyboard
Getting to know the AutoCAD coordinate systems
Snapping to object features
Using other precision drawing and editing techniques
Drawing precision is vital to good CAD drafting practice, even more than for manual drafting. (Accuracy, of course, is vital to both types of drafting. If you’re sketchy on the difference between accuracy and precision, look ahead to the “CAD precision versus accuracy” sidebar in this chapter.) If you think CAD managers become tense when you assign properties directly to objects instead of ByLayer (see Chapter 9), wait until someone — we sincerely hope it’s not you — fails to use precision techniques when creating drawings in AutoCAD.
Controlling Precision
In AutoCAD, a lack of precision makes editing, hatching, and dimensioning tasks much more difficult and time consuming. Keep these facts in mind:
Small errors in precision in the early stages of creating or editing a drawing often significantly affect productivity and precision later.
CAD drawings are often used for much more than giving pictures to someone. If the drawings have been properly created, they can also be queried for factors such as size, area, and quantity.
Drawings may guide manufacturing and construction projects; drawing data may drive automatic manufacturing machinery. Huge amounts of money, and even lives, can ride on a drawing’s precision.
In recognition of these facts, a passion for precision permeates the profession. Precision is one characteristic that separates CAD from ordinary illustration-type drawing work. The sooner you get fussy about precision in AutoCAD, the happier everyone is.
When we talk about drawing elements precisely, we mean using precision techniques and tools to specify points and distances with as much exactness as the program allows. Luckily, AutoCAD provides a comprehensive package of tools for this task. Table 8-1 lists the more important AutoCAD precision techniques, along with visual cues to the status bar buttons you click to toggle certain features. Note that this list omits status bar buttons that don’t directly affect drawing precisely.
To use object snap tools, follow these steps:
1. Make sure all status bar buttons are turned off.
They should have gray, not blue, backgrounds.
2. Start the Line command.
3. Pick three points to draw two sides of a triangle.
4. Draw the third side of the triangle.
Pick a point as close as you can to the start of the first line (that is, the first point you picked). Don’t use the Close option.
5. Press Enter to complete the command.
Pressing the spacebar is usually faster than pressing Enter.
6. Right-click the OSNAP button and choose Settings.
7. Deselect all items except for Endpoint and Object Snap On. Click OK.
With these two settings, you’re turning on object snap functionality and one of the object snap modes (Endpoint).
8. Start the Line command again.
9. Hover the cursor over the first line so that a green square box lights up at the end of the line closest to its starting point. Pick the line at this point.
10. Repeat Step 9 for the ending point of the third line, and then press Enter.
11. Enter Zoom Object Last and press Enter.
AutoCAD zooms in to display a tiny line segment — the last line you drew. The “triangle” now consists of four lines.
12. Enter Zoom Previous.
13. Repeat Steps 8–10, but select two lines that form one of the other two vertices of the triangle.
Look in the command line, where AutoCAD reports that it created a "zero-length line"
. Obviously, the two lines now touch perfectly because the last one "snapped" like a magnetic attraction to the endpoint of the first line. (Okay, it was the start point, but we're sure that you . . . get the point.)
If you were able to make the first and third lines touch at the limit of AutoCAD’s 16-place accuracy, you should throw away this book and buy every lottery ticket you can find.
If you had tried to use the original three lines to control a computer numerically controlled (CNC) milling machine, you would have had problems at the final apex. You need to draw the triangle using the Close option of the Line command or the endpoint object snap.
ON: The button looks lit (slightly brighter than its neighbors — typically, a light blue).
OFF: The button looks dimmed (typically, dark gray).
Understanding the AutoCAD Coordinate Systems
Every point in an AutoCAD drawing file can be identified by its X,Y,Z coordinates. (In most 2D drawings, the Z-coordinate value is 0.0.) This system of coordinates is referred to in AutoCAD as the world coordinate system, or WCS.
Keyboard capers: Coordinate input
The most direct way to enter points precisely is to type numbers with the keyboard. AutoCAD uses these keyboard coordinate entry formats:
Absolute Cartesian (X,Y) coordinates in the form X,Y (for example, 7,4)
Relative X,Y coordinates in the form @X,Y (for example, @3,2): Defines a new point that is X units horizontally (3, in the example) and Y units vertically (2, in the example) away from the current point.
Relative polar coordinates in the form @distance<angle (for example, @6<45): Defines a new point that is the specified distance (6, in the example) units away from the current point at the specified angle (45 degrees, in the example) from the origin.
Introducing user coordinate systems
Many times, you can conveniently define an additional coordinate system (or “roll your own”) to more easily create drawings. This non–world coordinate system, known as a user coordinate system (UCS, for short), is so widely used that UCS now refers to every coordinate system in AutoCAD.
Why would you want to diverge from the standard WCS? Well, the most common reason is that it’s much easier to calculate and enter coordinates if they’re based on the plane you want to work on in 3D. Suppose that you’re modeling an old-fashioned, wedge-shaped rubber doorstop and you want to add the manufacturer’s logo to the sloping surface of the wedge. It isn’t easy if you stay in the WCS, but AutoCAD lets you set a new UCS based on that sloping surface. After the UCS is made current, you draw in it just as you draw in the WCS. (We have more to say about UCSs in 3D in Chapter 21.)
Think of the real world. A specific latitude and longitude (WCS) always identifies the same point, but the actual location for a description like “the corner of 33rd and Main” depends on which city you’re in (UCS).
Although originally intended for 3D work, a UCS can be useful on either two dimensions or three. The WCS assumes that the north direction is straight up (90 degrees, according to the AutoCAD default settings), but you may be working on a building layout where one wing is at a 37.8 degree angle to the other. No problem: Simply create a UCS that’s aligned appropriately. You can look up this process in the online help system (this book has only so many pages, after all), but here’s a quick hint: Click the UCS icon in the lower-left corner of the screen to make “grips” appear at the origin and the ends of the axis indicators. Then drag the icon by its grips to set a new UCS. (We cover this feature more fully in Chapter 21.)
Drawing by numbers
AutoCAD locates absolute X,Y coordinates with respect to the 0,0 point (otherwise known as the origin) of the drawing — usually, its lower-left corner. AutoCAD locates relative X,Y coordinates and relative polar coordinates with respect to the previous point you picked or typed. Figure 8-1 demonstrates how to use all three coordinate formats to draw a pair of line segments that start at the absolute coordinates 2,1, and then move to the right 2 units and up 1 unit (@2,1) relative to the first point, and then (relative to that point) move 2 units at an angle of 60 degrees (@2<60). Note in particular how the first two coordinate pairs use the same numbers (2,1) but the second pair defines a different point because of the leading @ symbol.
Figure 8-1: Coordinating from the keyboard.
If you’re using the full version of AutoCAD, you may have noticed that three numbers are at the left end of the status bar. (AutoCAD LT is numerically challenged.) AutoCAD is showing you the X,Y coordinates of the crosshairs and the current elevation (the Z value). However, in 2D drafting, the Z value is (or should be) 0, so you can continue calling them X,Y coordinates.
Although it isn’t apparent at first, AutoCAD has, in fact, four coordinate display modes. Clicking the coordinates readout cycles through these modes:
Off (<Coords off>
): The status bar coordinate readout is dimmed, and the coordinate values don't update until you pick a point.
On, showing X,Y coordinates (<Coords on>
): The coordinate readout appears black, and the absolute X,Y coordinates update continuously as you move the crosshairs. If no command is active, clicking the coordinates readout alternates between this mode and <Coords off>
.
On, showing polar coordinates (<Coords on>
): This mode, which displays distance and angle relative to the last point picked rather than absolute X,Y values, appears if a command is active and AutoCAD is waiting for you to pick a point.
On, showing geographic coordinates (<Coords on>
): This mode displays coordinates as latitude and longitude values, but it can be used only after you set the drawing's geographic location with the (what else?) GeographicLocation command.
If you start a command such as Line, pick a point, and then click the Coordinates area a few times, the display changes from coordinates Off to live absolute coordinates (X,Y position) to live polar coordinates (distance and angle from the previous point). Displaying live polar coordinates is the most informative mode most of the time.
To specify feet, you must enter the apostrophe (') symbol for feet after the number:
6' is 6 feet.
To separate feet from inches (as architects often do), enter a dash:
6'-6" is 6 feet, 6 inches.
When you enter coordinates and distances, both the dash and the inch mark are optional:
6'6" and 6'6 are the same as 6'-6".
To type a coordinate or distance that contains fractional inches, you must enter a dash — not a space — between the whole number of inches and the fraction:
6'6-1/2 (or 6'-6-1/2) represents 6 feet, 6-1/2 inches.
To enter partial inches (if all this dashing about confuses you), use decimals instead:
6'6.5 is the same as 6'6-1/2" to AutoCAD, whether you’re working in architectural or engineering units.
Grabbing an Object and Making It Snappy
After you’ve drawn a few objects precisely in a new drawing, the most efficient way to draw more objects with equal precision is to grab specific, geometrically precise points, such as endpoints, midpoints, or quadrants, on the existing objects. Every object type in AutoCAD has at least one of these points, and you can “snap” to them precisely as you draw by using object snaps (osnaps).
AutoCAD provides two ways to use an object snap:
Object snap override: Active for a single pick.
Running object snap: Remains in effect until you turn it off.
AutoCAD (but not AutoCAD LT) has a suite of object snaps specifically for working in 3D. Although we cover them fully in Chapter 21, we point them out here because the 3DOSNAP status bar button sits next to the standard OSNAP button, and it isn’t easy to distinguish them. In this section, you use the regular Object Snap button — it shows the square with the sunburst in the upper-left corner, not the 3D-looking box with the sunburst in the lower-left corner.
Grabbing points with object snap overrides
Here’s how to draw precise lines by using object snap overrides:
1. Open a drawing containing some geometry, or start a new drawing and create some.
2. Turn off running object snap mode by clicking the OSNAP button on the status bar until the button appears to be dimmed and <Osnap off>
appears in the command line.
Although you can use object snap overrides while running object snaps are enabled, we recommend that you turn off running object snaps while you’re becoming familiar with object snap overrides. After you get the hang of each feature separately, you can use them together.
3. Start the Line command by clicking the Line button in the Draw panel on the Ribbon or by typing Line (or L) and pressing Enter.
AutoCAD prompts you to select the starting point of the line:
Specify first point:
4. Hold down the Shift key, right-click anywhere in the drawing area, and release the Shift key.
The Object Snap menu appears, as shown in Figure 8-2.
Figure 8-2: The Object Snap right-click menu.
5. Choose an Object Snap mode, such as Endpoint, from the Object Snap menu.
The Object Snap menu disappears, and the command line displays an additional prompt indicating that you’ve directed AutoCAD to seek out, for example, the endpoints of existing objects:
_endp of:
6. Move the crosshairs slowly around the drawing, pausing over various lines and other objects. (Don’t click yet.)
When you move the crosshairs near an object with an endpoint, a colored square icon appears at the endpoint, indicating that AutoCAD can snap to that point. If you stop moving the crosshairs for a moment, a tooltip displaying the Object Snap mode (for example, Endpoint
) appears, to reinforce the idea.
7. Click when the ENDpoint object snap square appears on the point you want to snap to.
AutoCAD snaps to the endpoint, which becomes the first point of the new line segment that you’re about to draw. The command line prompts you to select the other endpoint of the new line segment:
Specify next point or [Undo]:
When you move the crosshairs around the drawing, AutoCAD no longer seeks out endpoints, because object snap overrides last for only a single pick. You can use the Object Snap right-click menu again to snap the other end of the new line segment to another point on an existing object.
8. Display the Object Snap menu again (refer to Step 4). Then choose another Object Snap mode, such as MIDpoint, from the Object Snap menu.
The command line displays an additional prompt indicating that you directed AutoCAD to seek, for example, midpoints of existing objects:
_mid of:
When you move the crosshairs near the midpoint of an object, a colored triangle appears at the snap point, as shown in Figure 8-3. Each object snap type (such as ENDpoint, MIDpoint, and INTersection) displays a different symbol. If you stop moving the crosshairs, the tooltip text reminds you of what the symbol means.
9. Draw additional line segments by picking additional points. Use the Object Snap right-click menu to specify a single object snap type before you pick each point.
Try the INTersection, PERpendicular, and NEArest object snaps. If the drawing contains arcs or circles, try Center and Quadrant.
10. When you finish working with object snap overrides, right-click anywhere in the drawing area and choose Enter from the menu to end the Line command.
Figure 8-3: A snappy line.
Right-click: Displays menu options for the current command (or common commands and settings when no command is active).
Shift+right-click: Always displays the same Object Snap menu.
Running with object snaps
Often, you use an object snap setting (such as ENDpoint) repeatedly. Use running object snaps to address this need.
Follow these steps to set a running object snap:
1. Right-click the OSNAP button on the status bar.
The Object Snap menu appears, as shown in Figure 8-4.
Many status bar buttons display shortcut menus when you right-click, as shown in Figure 8-4. (Object Snap and Object Snap Tracking both display the menu of running object snaps.) Many settings, including all running Object Snap types, can be set by clicking a menu item. You no longer need to open the Drafting Settings dialog box, make your settings, and then click OK to close the dialog box.
Figure 8-4: Grabbing multiple object features is an osnap.
2. Click in the menu to select one or more Object Snap settings.
Active running Object Snap settings show a highlighted square around the icon (see Figure 8-4).
You click the Object Snap button on the status bar to toggle Running Object Snap mode. After you turn on this mode, AutoCAD hunts for points that correspond to the object snaps you selected on the Object Snap button’s right-click menu. As with object snap overrides, AutoCAD displays a special symbol — such as a square for an ENDpoint object snap — to indicate that it has found an object snap point. If you keep the crosshairs still, AutoCAD also displays a tooltip that lists the object snap point type.
Use object snap overrides or running object snaps to enforce precision by ensuring that new points you pick coincide exactly with points on existing objects. In AutoCAD, you can’t let points almost coincide or look like they coincide. You lose points, both figuratively and literally, if you don’t use object snaps or another precision technique covered in this chapter to enforce precision.
For example, applying crosshatching rapidly becomes impossible if the boundary of the area you’re hatching has even microscopic leaks.
Other Practical Precision Procedures
The following list describes additional AutoCAD precision techniques (refer to Table 8-1):
Snap: If you turn on Snap mode, AutoCAD constrains the crosshairs to an imaginary rectangular grid of points at the spacing that you’ve specified when AutoCAD prompts you to specify a point.
When you enable Snap mode, at first it seems to be broken because the cursor doesn’t snap to the imaginary grid but travels freely. Snap mode becomes active only when the program asks you to pick a point.
Follow these steps to turn on Snap mode:
a. Right-click the Snap Mode button on the status bar.
b. Choose Settings.
The Snap and Grid tab in the Drafting Settings dialog box appears.
c. Enter a snap spacing in the Snap X Spacing field and click OK.
Click the Snap Mode button on the status bar (it’s labeled SNAP if the status bar buttons show text), or press F9 to toggle Snap mode off and on.
Usually, you can turn on Snap mode all the time, set at the usual smallest measurement increment. For example, to design doorknobs, we set it to 0.001, whereas an architect might set it to 1/8". Now, we know that even “randomly selected” points have the degree of accuracy we want.
You can switch between Grid Snap (snap points in rows and columns) and PolarSnap (snap points based on distances and angles) by using the SNAP mode button’s shortcut menu. See the PolarSnap Bullet1 for more information.
Ortho: Using Ortho mode forces the crosshairs to move horizontally or vertically relative to the current coordinate system’s X- and Y-axes. To toggle Ortho mode, click the Ortho Mode button (it’s ORTHO, on text buttons) on the status bar or press F8. Because technical drawings often include lots of orthogonal lines, you may use Ortho mode a lot — but take a close look at polar tracking as well.
According to Autodesk Evangelist Lynn Allen, you know you’ve been using AutoCAD too long when the police officer asks you to walk a straight line and you reply “No problem. Can you press F8 please?”
Direct distance entry (DDE): This point-and-type technique is an easy and efficient way to draw with precision. You simply point the crosshairs in a particular direction, type a distance value at the command line, and press Enter. You can use DDE at any time the crosshairs are anchored to a point, and the command line or Dynamic Input tooltip prompts you for another point or a distance.
You usually use DDE with polar tracking turned on to specify distances in particular directions (for example, in angle increments of 45 degrees). You can also combine DDE with Ortho mode to specify a distance in an orthogonal direction (0, 90, 180, or 270 degrees).
Object snap tracking: This feature extends running object snaps so that you can locate points based on more than one object snap point. For example, you can define a point at the center of a square by tracking to the MIDpoints of two perpendicular sides. Click Object Snap Tracking on the status bar (if you’re showing text instead of icons, this button is labeled OTRACK) or press F11 to toggle Object Snap Tracking.
You can locate points based on more than one object snap point. Follow these steps:
a. Draw a rectangle with the RECtang command.
b. Right-click the OSNAP button, choose Settings, turn on MIDpoint, and then click OK.
c. Make sure OSNAP and OTRACK are turned on.
d. Start the Circle command.
e. Move the cursor close to the middle of the bottom line of the rectangle until the green triangle osnap marker appears. Don’t pick this point.
f. Move the cursor vertically and note that the green triangle disappears to be replaced by a green + sign, and a vertical dotted green line appears.
g. Move the cursor close to the middle of one of the vertical lines of the rectangle until the green triangle osnap marker appears. Don’t pick this point either.
h. Move the cursor horizontally until the two dotted green lines cross and an X appears, along with a “midpoint” tooltip, as shown in Figure 8-5.
i. Click this point to define the center of a circle that is exactly in the middle of the rectangle.
You can use this same technique to transfer points from a front view to a top view or to a side view without having to use construction lines.
Figure 8-5: Using Object Snap Tracking to find the exact middle of a rectangle.
Polar tracking: When you turn on polar tracking, the crosshairs jump to increments of the angle you specified in the Drafting Settings dialog box or chose on the right-click menu. When the crosshairs jump, a tooltip label starting with Polar: appears. Right-click the Polar Tracking button on the status bar (POLAR on buttons that show text labels) and choose the Settings option to display the Polar Tracking tab in the Drafting Settings dialog box. Select an angle from the Increment Angle drop-down list and then click OK. Click the Polar Tracking button on the status bar or press F10 to toggle Polar Tracking mode.
Remember that you can set a predefined polar tracking angle by right-clicking the Polar Tracking button and choosing an angle from the menu. If you want to add an angle that isn’t on the list, you have to click Settings to open the Drafting Settings dialog box.
Polar and Ortho modes are mutually exclusive. Turning on one turns off the other.
PolarSnap: You can force polar tracking to jump to specific incremental distances along the tracking angles by changing the snap type from Grid snap to PolarSnap. For example, if you turn on polar tracking and set it to 45 degrees, and then turn on PolarSnap and set it to 2 units, polar tracking jumps to points that are at angle increments of 45 degrees and distance increments of 2 units from the previous point. PolarSnap has a similar effect on Object Snap tracking.
To activate PolarSnap, right-click the Snap Mode button and choose PolarSnap from the menu. To specify a PolarSnap distance, follow these steps:
a. Right-click the SNAP button on the status bar.
b. Choose Settings.
The Snap and Grid tab on the Drafting Settings dialog box appears.
c. Click the PolarSnap radio button, type a distance in the Polar Distance text box, and then click OK.
When you want to return to ordinary rectangular snap, as described at the beginning of this list, right-click the Snap Mode button and choose Grid Snap from the menu.
Temporary override: Settings such as Snap, Ortho, and Polar remain on until you turn them off. You can also use a temporary override, which lasts only as long as you hold down its key or key combination. For example, when Ortho mode is turned off, holding down the Shift key puts AutoCAD into Ortho mode temporarily for as long as you press Shift. For additional information, see the online help system.
1. Become comfortable with typing coordinates, Ortho mode, direct distance entry, and Object Snap overrides.
2. Become familiar with running object snaps, and experiment with Snap mode.
3. After you’re comfortable using all these precision features, experiment with polar tracking, PolarSnap, and object snap tracking.