Chapter 14
IN THIS CHAPTER
Placing dimensions in drawings
Choosing a dimensioning method
Creating and modifying your own dimension styles
Adjusting dimension sizes to suit the drawing plot scale
Placing and modifying annotative dimensions, including details at other scales
Modifying dimensions
In drafting, whether CAD or manual, dimensions clearly indicate the size of things. They are special text labels with attached lines that point to what is being dimensioned. Although it’s theoretically possible to draw all the pieces of a dimension by using AutoCAD commands such as Line and mText, dimensioning is such a common drafting task that AutoCAD provides specific commands to do the job efficiently. These dimensioning commands place all parts of a dimension into a convenient, easy-to-edit package, much like a block. In fact, AutoCAD actually produces each dimension as something it calls an anonymous block.
Even better, as you edit an object, such as stretch a line, AutoCAD automatically updates the measurement displayed in the dimension text label to indicate the object’s new size. And perhaps best of all, AutoCAD’s annotative dimensions adjust their text height and arrowhead size automatically to suit the annotation scale on the Model tab or the viewport scale in a layout. I explain the general principles of annotative objects in Chapters 13 and 15. In this chapter, I take a close look at annotative dimensions.
I start off with an exercise to introduce AutoCAD’s dimensioning function by creating linear dimensions that show the horizontal or vertical distance between two points:
Start a new drawing, using the acad.dwt
template file.
This step creates a drawing that uses imperial units, even if your default installation uses metric. It saves lazy writers from having to duplicate instructions for metric users.
Use the Line command to draw a non-orthogonal line.
A non-orthogonal line is a segment that’s neither horizontal nor vertical. Make the line about 6 units long, at an angle of about 30 degrees upward to the right.
Set a layer that’s appropriate for dimensions as current.
Okay, you started from a blank template, so it doesn’t have specific layers, but I included this step as a gentle reminder. As I discuss in Chapter 9, you normally set dedicated layers for visible edges, hidden edges, text, dimensions, section lines, hatching, and so on.
AutoCAD 2022 added a significant enhancement to dimensioning. A single command, DIM, handles all dimension types. The older method of using specific commands for designated dimension types is still available, and I discuss it later in “Dimensioning the Legacy Way.” As of AutoCAD 2016, you can define an override layer on which all dimensions automatically end up. See the “And the Correct Layer Is …” section at the end of this chapter.
Start the DIM command by clicking the big DIM button on the Annotate tab’s Dimensions panel, or type DIM and press Enter.
The DIM command has nothing to do with brightness. It can replace five older dimension commands, resulting in the same dimensions but with a lot less effort: DImLinear, DimALigned, DimANgle, DimDIameter, and DimRAdius. I talk about these individual dimensioning commands in “Dimensioning the Legacy Way.”
Select the object you want dimensioned, in this case the line.
You can pick an entity, and AutoCAD make a best guess at what kind of dimension it should receive. Or you can specify the dimension type. See the different kinds of dimensions AutoCAD produces later in “A Field Guide to Dimensions.”
Select objects or specify first extension line origin or [Angular Baseline Continue Ordinate align Distribute Layer Undo]:
At the next prompt, move the cursor around the line, and then pick a point to locate one of the extension lines.
As you move the cursor, notice that the dimension type changes. For a line, AutoCAD can dimension it with an aligned dimension (it appears parallel to the line), a horizontal dimension, or a vertical one.
Select line to specify extension lines origin:
Press Enter to end the command.
AutoCAD automatically starts the DIM command again, so that you can carry on dimensioning objects in the drawing. Pressing Enter ends the command and returns you to the command prompt.
The DIM command has an additional set of characteristics to enhance your dimensioning experience:
Prior to release 2016, AutoCAD had one command for every dimensioning type. There was DimLinear for linear dimensions, DimAligned for aligned ones, and DimAngular for dimensioning angles. If you are using a version of AutoCAD older than 2016, or even if you want to apply a specify dimension type and not have AutoCAD guess at what you want, you need to use the old system. Here's how it works:
Start the DimLInear command by clicking the Linear button at the bottom of the Annotate tab’s Dimensions panel, or type DLI and press Enter.
AutoCAD prompts you:
Specify first extension line origin or <select object>:
To specify the origin of the first extension line, snap to the lower-left endpoint of the line by using an ENDpoint object snap.
If you don’t have ENDpoint as one of your current running object snaps, specify a single endpoint object snap by holding down the Shift key, right-clicking, and choosing ENDpoint from the menu that appears. See Chapter 8 for more about object snaps.
AutoCAD prompts you:
Specify second extension line origin:
AutoCAD makes a link between dimensions and the objects being dimensioned. Therefore, to ensure that the values reported by dimensions are accurate and that later editing works properly, you must use object snaps or object selection when applying dimensions.
To specify the origin of the second extension line, snap to the other endpoint of the line by using the ENDpoint object snap again.
DimLInear draws a horizontal dimension (the length of the displacement in the left-to-right direction) if you move the cursor above or below the line. It draws a vertical dimension (the length of the displacement in the up-and-down direction) if you move the cursor to the left or right of the line.
AutoCAD prompts you:
Specify dimension line location or [Mtext Text Angle Horizontal Vertical Rotated]:
Move the mouse to generate the type of dimension you want — horizontal or vertical — and then click wherever you want to place the dimension line.
AutoCAD draws the dimension.
When you’re specifying the location of the dimension line, you usually don’t want to object-snap to existing objects. Rather, you want the dimension line and its text to sit in a relatively empty part of the drawing rather than have it bump into existing objects. If necessary, temporarily turn off running object snaps (for example, click the OSNAP button on the status bar) to avoid snapping the dimension line to an existing object.
If you want to be able to align subsequent dimension lines easily, turn on Snap mode and set a suitable snap spacing (more easily done than said!) before you pick the point that determines the location of the dimension line. See Chapter 8 for more information about Snap mode. To automatically space several existing dimensions equally apart, you can use the DIMSPACE command.
Click one of the grips at an end of the line and drag it around.
The dimensions automatically update, live and in real time, to reflect the current values as you move the mouse.
You probably don’t want dimensions to display four decimal places, or maybe you want to use a different font for dimension text, or use both imperial and metric units, or show manufacturing tolerances. Not a problem! AutoCAD controls the look of dimensions by means of dimension styles, just as it controls the look of text and tables with styles. In fact, AutoCAD uses text styles also to control the appearance of text in dimensions. I cover dimension styles in greater detail later in this chapter, but suffice it to say that AutoCAD has over 80 variables that can be used to warp dimensions into just about any perversion that your industry or company can imagine.
AutoCAD provides several types of dimensions and commands with which to draw them; most commands are shown in Figure 14-1. These commands are found on the Dimensions panel of the Annotate tab on the Ribbon. If you can’t find the button you want, it’s probably hidden in a drop-down list, under the smaller Linear button on this panel. This panel remembers the last button you used, so at any given time, it may be displaying any one of the following buttons.
Aligned — DimALigned (DAL): Similar to linear dimensions, but the dimension line tilts to the same angle as a line drawn through the origin points of its extension lines.
You don’t always have to pick points when placing dimensions with these commands. Watch the command line; it may ask you to
Specify first extension line origin or <select object>:
If you press Enter instead of picking the first point, AutoCAD prompts you to select an object. And when you do, it automatically selects each end of the object for you. (The DIM command reverses things: it first prompts you to pick an object.)
Radial — DimDIameter (DDI), DimRAdius (DRA): Indicates the diameter of a circle or an arc, or a radius of a circle or an arc. You can position the dimension text inside or outside the curve; refer to Figure 14-1. When you position the text outside the curve, AutoCAD draws (by default) a little cross at the center of the circle or arc. AutoCAD automatically adds the diameter and radius symbols to the appropriate dimension type.
Because radius and diameter dimensions seem to do the same thing, you might wonder when you should use which one. In most drafting disciplines, the convention is to use diameter dimensions for whole circles (for example, a hole) and use radius dimensions for part circles or arcs (for example, a fillet).
You can also use DimLInear to dimension a circle or an arc. Trying to pick the endpoints of a circle can keep you busy for several hours, but if you press Enter at the first prompt and then select a circle or an arc, it applies a linear dimension across the diameter. You can also use a QUAd object snap to pick two directly opposite points on the circle.
AutoCAD 2017 introduced associative center lines. This involves two commands:
Now comes the magic part. Centerlines created using these two commands are fully associative to the lines, circles, or arcs that were used to define them. When you move an arc or a circle or change its radius, or when you move either the line or either end of either line, the centermarks and centerlines obediently follow and remain properly centered.
Associative centerlines are automatically placed on a layer named “Center lines” with the Center2 linetype override. If this layer doesn’t exist, AutoCAD creates it automatically with a white/black color and the Continuous linetype. If this layer already exists in your template file, AutoCAD uses the color you specified, but ignores the linetype assigned to the layer and applies the Center2 linetype override anyway.
Three dimensioning commands can help you place multiple dimensions very quickly. They’re found near the middle of the Dimensions panel of the Annotate tab on the Ribbon.
In this section, I explain where to put dimensions, not where to place them. Huh? Right. (By now you should know to place dimensions outside the part, with smaller ones closer to the part and longer ones farther away, to avoid dimension lines crossing each other.) In this section, I show you the location in the drawing where your dimensions will live. You can choose one of three different methods for dimensioning your drawings:
In this section, I discuss how to set the factors that control the format and appearance of dimensions, but I start with a brief anatomy lesson. AutoCAD uses the names shown in Figure 14-2, and described in the following list, to refer to the parts of each dimension:
TYP.
, to indicate that a dimension is typical of several similar configurations; add manufacturing tolerances; and show dual dimensioning in alternate units.By default, no matter which type of dimension you create, AutoCAD groups all parts of each dimension (extension lines, dimension lines, arrowheads, and text) into a special associative dimension object. Associative has two meanings:
The good news is that you should have to adjust things to suit your specific industry or company only once, and then all dimensions will suit the specified standard. The really good news is that it usually takes only a bit of fine-tuning of the default settings to cover most of your dimensioning needs.
Dimension styles are saved in the current drawing. The really, really good news is that you can save this drawing as a template file (I cover templates in Chapter 4) so that all new drawings created from this template will have the dimension styles predefined. Or if you’re working in an office, then someone may already have set up suitable dimension styles. Or you can use DesignCenter to copy styles from one drawing to another.
A dimension style (or dimstyle, for short) is a collection of drawing settings, called dimension variables (or dimvars, for short), which are a special class of the system variables that I describe in Chapter 23.
If you do need to create your own dimension styles or you want to tweak existing ones, use the Dimstyle command. You can invoke it by clicking the small, diagonal arrow in the lower-right corner of the Dimensions panel of the Annotate tab on the Ribbon. The Dimension Style Manager dialog box opens, as shown in Figure 14-4.
Every drawing comes with a default dimension style named Standard when you start with an imperial (feet-and-inches) template, or ISO-25 with a metric template, and matching annotative styles. (I cover annotative dimensions later in this chapter.) Although you can use and modify the Standard or ISO-25 style, I suggest that you leave them as they are, and create your own dimension style(s) for the settings appropriate to your work. This approach ensures that you can always use the default styles as a reference. More important, it avoids a potential conflict that can change the way your dimensions look when the current drawing is inserted into another drawing: AutoCAD refers to styles by name, so if you have two styles of the same name, one will override the other. Chapter 18 describes this potential conflict.
Follow these steps to create your own dimension style(s):
On the Ribbon’s Home tab, click the label of the Annotation panel to open the panel slideout, and then click the Dimension Style button.
Alternatively, if that just sounds like too much work, you can type D and press Enter. The Dimension Style Manager dialog box appears.
In the Styles list, select the existing dimension style whose settings you want to use as the starting point for the settings of the new style.
For example, select the default dimension style named Standard or ISO-25.
Click the New button to create a new dimension style that’s a copy of the existing style.
The Create New Dimension Style dialog box appears.
Enter a New Style Name and then select or deselect the Annotative check box. Click Continue.
Select the Annotative check box to create an annotative dimension style, or deselect it for a non-annotative style.
The New Dimension Style dialog box appears. This dialog box is virtually identical to the Modify Dimension Style dialog box, which is displayed when you edit a dimension style.
Modify dimension settings on any of the seven tabs in the New Dimension Style dialog box.
See the descriptions of these settings in the next section of this chapter.
Click OK to close the New Dimension Style dialog box.
The Dimension Style Manager dialog box reappears.
Click Close.
The Dimension Style Manager dialog box closes, and the new dimension style becomes the current dimension style that AutoCAD uses for future dimensions in this drawing.
After you click New or Modify in the Dimension Style Manager dialog box, AutoCAD displays a tabbed New Dimension Style dialog box or Modify Dimension Style dialog box (the two dialog boxes are identical except for their title bars) with a mind-boggling — and potentially drawing-boggling, if you’re not careful — array of settings.
Fortunately, the dimension preview that appears on all tabs — as well as on the main Dimension Style Manager dialog box — immediately shows the results of most setting changes. With the dimension preview and some trial-and-error setting changes, you can usually home in on an acceptable group of settings. For more information, use the Help feature in the dialog box: Just hover the mouse pointer over the setting that you want to know more about.
The following few sections introduce you to the more important tabs in the New/Modify Dimension Style dialog boxes and highlight the most useful settings. Note that whenever you specify a distance or length setting, you should enter size you want it to be when the drawing is plotted. I discuss plotting size and scale factors in Chapters 13 (text) and 15 (hatching) and later in this chapter.
The settings on the Lines tab and the Symbols and Arrows tab control the basic look and feel of all parts of your dimensions, except text.
The settings on the Symbols and Arrows tab control the shape and appearance of arrowheads and other symbols.
A useful setting is Center Marks. Depending on which radio button you select, placing a radius or diameter dimension also identifies the center by placing a small center mark, or by placing center lines that extend just beyond the circle or arc, or none. The default is the tick mark, but I prefer the line because normal drafting practice is usually to show center lines.
Use the Text tab to control how dimension text looks, which includes the text style and height to use (see Chapter 13) and where to place the text with respect to the dimension and extension lines. In particular, note the Text Style drop-down list, which shows the text styles available in the drawing. Click the three-dot Browse button at the right end of the list to open the Text Style dialog box, and edit or create a suitable text style if one doesn’t already exist in your current drawing. The default Text Height in imperial units (0.180) is too large for most situations; set it to 1/8″, 0.125′, 3mm, or another height that makes sense.
The Fit tab includes a bunch of options that control when and where AutoCAD shoves the dimension text when it doesn’t quite fit between the extension lines. The default settings leave AutoCAD in “maximum attempt at being helpful” mode. That is, AutoCAD moves the text, dimension lines, and arrows around automatically so that nothing overlaps. On rare occasions, AutoCAD’s guesses might be less than perfect. It’s usually easier to adjust the text placement by grip-editing the placed dimension, as I describe in the section “Editing dimension geometry,” later in this chapter, instead of messing with dimension style settings.
Most important, the Fit tab includes the Annotative check box. Using annotative dimensions, as I recommend in this chapter, makes dimensioning go a lot more smoothly!
The Primary Units tab gives you highly detailed control over how AutoCAD formats the characters in the dimension text string. You usually set the unit format and precision, and maybe specify a suffix for unitless numbers, when it’s not clear from the drawing which units you’re using. You may also change the Zero Suppression settings, depending on whether you want dimension text to read 0.5000
, .5000
, or 0.5
. “Zero Suppression!” also makes a great rallying cry for organizing your fellow AutoCAD drafters.
When your work requires that you show dimensions in two different systems of measure, such as inches and millimeters, use the Alternate Units tab to turn on and control alternate units. Alternate Units display both dimensions at a time. Use 25.4 as the Multiplier for Alt Units to display millimeters alongside inches. When your work requires listing construction or manufacturing tolerances, such as 3.5 +/-0.01, use the Tolerances tab to configure the tolerance format.
AutoCAD includes a separate TOLerance command that draws special symbols called geometric tolerances. If you need these symbols, you probably know it and you have my sympathies; if you’ve never heard of them, just ignore them. Search for the term Geometric Tolerance dialog box in the AutoCAD Help system for more information.
To switch to a different style, click in the dimension style window in the Dimensions panel of the Annotate tab on the Ribbon, and select a style from the drop-down list. Beginning with AutoCAD 2014, if you know the name of the style that you want to use, just begin typing it at the command line. The AutoCAD command line searches for dimension styles; when you see the one you want, just click it.
You need to adjust the size of text and dimensions that are applied in model space to suit the final plotting scale of the drawing. By far, the best way to do this is to use annotative dimensions.
Follow these steps to use the Annotative dimension style and apply an annotative scale to a dimension:
Start a new, blank Imperial drawing.
Use the acad.dwt
template.
Apply a linear dimension (DimLInear, or DLI) to the line.
Pretty hard to read, isn’t it?
Switch to the Annotative dimension style.
Find the Dimension Style drop-down list that reads Standard
in the upper-right corner of the Dimension panel of the Annotate tab on the Ribbon. Click it and then choose Annotative.
Change the current drawing annotation scale.
Select the 1:5 scale from the drop-down list, under the Annotation Scale button in the lower-right corner of the application window.
Use the DIMLIN command again and place a second dimension for the line.
Ah, that’s better, and it didn’t require any esoteric calculations. You now have two dimensions that measure the length of the line, but the text and arrowheads appear at different sizes now.
To avoid confusing results, which is what has turned off most users from using annotative annotations, make sure that the Automatically Add Scales button near the right end of the status bar is turned off. When Automatically Add Scales is enabled, AutoCAD updates all annotation objects that support annotative behavior when you change the current annotative scale. Having all scales attached to every annotation object is not ideal as it is much harder to control where the new scale representations appear in your drawing, especially when they might not all be needed. I discuss this topic more in Chapter 13.
Dimensioning details at different scales is always the most difficult type of dimensioning, unless you use annotative dimensions.
Here’s the easy way to create a multiscale drawing, such as the one in Figure 14-5:
Apply the three dimensions that show in the Scale 1:10 view in Figure 14-5, using an annotative dimension style.
The figure shows paper space, but you’re working in model space.
Apply an annotative hatch and then draw the center line.
Turn to Chapter 15 if you’re not sure how to apply an annotative hatch.
Edit the properties of the hatch pattern and the 1.400 dimension to add 1:2 scale factors.
Chapter 15 discusses editing hatch patterns.
Make sure that the Automatically Add Annotative Scales button is turned off, and change the Annotation Scale to 1:2.
Three existing dimensions disappear, and the hatch and the 1.400 dimension resize themselves.
Switch to the paper space Layout1 tab. Click the viewport boundary and then grip-edit it approximately to the size and location shown.
Your model space drawing is probably not properly located, and the hatch and dimensions don’t show.
Click the viewport boundary again, click the Viewport Scale button (which might contain an AutoCAD-generated best-fit value like 0.694694
), and select 1:10 from the scale list.
The viewport zooms accordingly, and the hatch and 1:10 dimensions appear. If necessary, double-click in the viewport to enter model space, and then pan accordingly.
Don’t zoom or else you lose the scale setting!
Repeat Steps 8 and 9 on the new viewport, but use a Viewport Scale of 1:5.
Use the Lock/Unlock button to lock the viewports to prevent inadvertently messing with them.
There you have it — a multiview, multiscale detail drawing without duplicating any geometry or annotations. To see the real magic of it, go to the model space tab and observe that there’s still only one model of the part and no detail view at the other scale. Use the Stretch command to play with the depth and location of the notch. Go back to the Layout1 tab to see how everything has automatically updated in both views. Magic!
After you draw dimensions, you can edit the position of the various parts of each dimension and change the contents of the dimension text. AutoCAD groups all parts of a dimension into a single object.
The easiest way to change the location of a part of a dimension is with grip editing. I describe editing with grips in Chapter 11. Just click a dimension, click one of the grips (which generally appear at the text, the ends of the dimension lines, and the defpoints), and then maneuver away. You’ll discover that certain grips control certain directions of movement.
In AutoCAD 2012, dimensions joined the group of objects that feature multifunction grips. Hover the cursor over the text grip of a linear dimension, and notice the menu that appears, with numerous options for adjusting the location of the text. Hover over an arrow grip, and you can stretch the extension line(s) longer or shorter, start a continuous or baseline dimension from that end of the dimension, or flip the arrow. You can do these things by selecting a dimension and changing items in the Properties palette, but the multifunction grips are more immediate.
When you want to change the look of a component of a specific dimension, use the Properties palette. For example, you can substitute a different arrowhead (Arrow 1 and Arrow 2) or suppress an extension line (Ext line 1 and Ext line 2). See Chapter 11 for more on the Properties palette. All dimension settings in the New/Modify Dimension Style dialog boxes (see “Adjusting style settings,” earlier in this chapter) are available in the Properties palette after you select one or more dimensions.
Follow these tips for editing dimensions:
You don’t always have to draw everything at full size. A fundamental mantra in AutoCAD is that you should always draw everything at full size. On occasion, however, it isn’t always practical. For example, you may design a power-transmission shaft for a large machine. The shaft is 4 inches in diameter and 12 feet long. It has a variety of splines, keyways, and bearing shoulders on each end, but the 11-foot section in the middle is simply a straight cylinder. If you draw it at full size and scale the plot to fit a suitable paper size, you’ll never see the details at each end.
Common practice would be to draw the interesting end details, break out and remove the boring center section, and then bring the ends closer together. Now you can create a reasonable plot. The problem is that any dimension that crosses over the break, such as the overall length, doesn’t show the correct value. The solution is to override the value, and then to use the DIMJOGLINE command to insert a jog in the dimension line to indicate that the dimension line isn’t the true length. I explain how a little later in the section “Editing dimension text.”
In spite of the name similarities, don’t confuse DIMJOGLINE with the DimJOgged command, covered earlier in this chapter. DIMJOGLINE is for linear dimensions, and DimJOgged is for radial dimensions.
Sometimes, it’s better to create a new style. When you change a setting in the Properties palette, you’re overriding the default style setting for that dimension. If you need to make the same change to a bunch of dimensions, it’s usually better to create a new dimension style and assign that style to them. You can use the Properties palette or the right-click menu to change the dimension style that’s assigned to one or more dimensions.
If you manually change a dimvar setting, the setting is applied to the current dimension style as an override, and all subsequent dimensions that are placed by using this style have the overridden appearance. This can cause much the same problem as overriding object properties instead of using different layers; if you edit a dimension style, all existing dimensions that use it update, including the ones that you hadn’t expected because they seem to be different from the ones you want.
In most cases, you shouldn’t have to edit text in dimensions. Assuming that you draw the geometry accurately and pick the dimension points precisely, AutoCAD always displays the right measurement. When you change the size of the associated object, AutoCAD updates the dimension text. However, you may occasionally want to override the dimension text (that is, replace it with a different measurement), add a prefix or a suffix to the true measurement, or change its display accuracy.
AutoCAD creates dimension text as multiline text, so dimension text has the same editing options as mText. You have several ways to launch the dimension text editor, but the easiest is to simply double-click the dimension text.
AutoCAD displays the true dimension length as text in the actual dimension, and updates the text when you change the size or location of the object. You can override the true length by replacing it with a specific length or another text string. You can preserve the true length by adding a prefix or suffix by inserting <>
(that is, the left and right angle-bracket characters) as placeholders for the dimension value. For example, if you enter About <> and the actual distance is 12.000, AutoCAD displays About 12.000
for the dimension text. If you stretch the object later so that the actual distance changes to 14.528, AutoCAD changes the dimension text automatically to read About 14.528
. Now you can appreciate the importance of drawing and editing geometry precisely!
When you add dimensions by selecting objects or by using Object Snap modes to pick points on the objects, AutoCAD normally creates associative dimensions, which are connected to the objects and move with them. This is the case in new drawings that were originally created in any release of AutoCAD starting with 2002.
Starting with AutoCAD 2016, you can set up AutoCAD so that dimensions are automatically placed on the correct layer. Follow these steps:
Start the LAyer command.
Click the Layer Properties button on the Layers panel.
Create a new layer.
Give it a suitable name, such as Dims, and assign it a desired color. I discuss layers in Chapter 9.
In the Dim Layer Override drop-down list in the middle of the Dimensions tab, select your dimension layer.
That’s it! Whenever you add a dimension to this drawing, it will automatically land on your dimension layer, regardless of which layer is active.