Chapter 15
IN THIS CHAPTER
Placing hatch patterns in drawings
Applying annotative hatch patterns
Choosing hatch boundaries
Using predefined and user-defined hatch patterns
Editing hatches
When you need to fill closed areas of drawings with special patterns of lines (crosshatches, or simply hatches) or fill them with solid colors, this is your chapter. If you were hoping to hatch a plot or plot a hatch, see Chapter 16. If you want to hatch an egg, look at Raising Chickens For Dummies, by Kimberly Willis and Robert T. Ludlow (Wiley).
A hatch in AutoCAD is an object that fills an area. Its appearance is dictated by the pattern or fill color assigned to it. It is associated with the objects that bound the area — typically, lines, polylines, and arcs make up the boundary, much like borders of a country. When you move or stretch the boundary, AutoCAD normally updates the hatch to match the moved or resized area.
Drafters often use hatches to represent the types of material from which the objects they are designing are made or filled, such as metal, insulation, or concrete. In other cases, hatch patterns help emphasize and clarify particular elements in drawings — for example, the location of walls in a building plan or swampy areas on a map so that you know where to avoid building the road.
Figure 15-1 shows an example of using hatches to specify a concrete footing. The four patterns indicate materials to be used; from top to bottom, they are concrete, gravel, sand, and soil. In mechanical design, hatches are used to show which faces are cut in cross sections, as well as to indicate the material.
This section gives you a jump-start on the basic process AutoCAD uses to create hatches and shows you how easy it is. I also cover many of the options included on the Hatch Creation contextual tab on the Ribbon, shown in Figure 15-2, and how to edit existing hatched areas.
Follow these steps to hatch an enclosed area by using the pick-points method of showing the area to be hatched:
Start a new drawing, using the acad.dwt
template for imperial units or acadISO.dwt
for metric units.
Draw a circle with a radius of 5 units (imperial) or 50 units (metric). Draw a second circle inside the first with a radius of 2 units (imperial) or 20 units (metric).
Start the Hatch command by typing H and pressing Enter or by clicking the Hatch button in the Draw panel of the Home tab on the Ribbon.
The Hatch Creation contextual tab on the Ribbon appears, as shown in Figure 15-2. Ignore it for now.
Move the cursor on the screen.
As the cursor moves within any enclosed area in the drawing, a preview of the pattern shows you how the final hatch will look after you pick a point inside that particular area. Starting from outside the larger circle, move the cursor into the space between circles, and then into the inner circle, and then back into the space between circles, noting how the quick preview shows the area to be hatched.
Change some hatch options.
The quick preview updates also as you select different patterns and change values in the Hatch Ribbon tab. Try different patterns. The three little arrows along the right side of the Pattern panel scroll through the different patterns that are available. My favorite pattern is Escher.
Click the Close Hatch Editor button to exit the command.
Congratulations — in only a few seconds, you’ve done something that would have taken an hour or more in the days of pencil and paper!
When working with hatches, keep these tips in mind:
Starting with AutoCAD 2017, you can set up drawings so that hatches are placed on a layer of their own, automatically. Follow these steps:
Start the LAyer command.
To do so, click the Layer Properties button on the Layers panel of the Home tab.
Create a new layer.
Give it a suitable name, such as Hatch, and assign it a color. I discuss layers in Chapter 9.
Start the Hatch command.
Type H and press Enter or click the Hatch button on the Draw panel of the Home tab.
Select your Hatch layer.
Click the down arrow at the bottom of the Properties tab to see the slideout panel. In the Hatch Layer Override drop-down list that appears, change the layer from Use Current to the new layer you created.
Close the Hatch Creation tab by clicking the Close Hatch Creation button.
That’s it! From now on, whenever you create a hatch pattern in this drawing it will automatically land on the Hatch layer, regardless of which layer is currently active. Remember to add this layer to your template drawings; you can do this by using the HpLayer system variable.
Now that you know how easily you can hatch areas, you can explore the main options in the contextual Hatch Creation tab of the Ribbon. Any time you start the Hatch command, you see the Hatch Creation tab. (Refer to Figure 15-2.) If you double-click an existing hatch, you see the Hatch Editor tab instead, but the two tabs are virtually identical.
Working from left to right, the Hatch Creation tab contains these options:
Boundaries: The easiest, most intuitive, and most common way to define the boundary of a hatch is to simply pick inside a region. AutoCAD searches for objects nearest the pick point that would enclose an area, and then highlights them in blue. If you pick multiple regions in one run of the Hatch command, each region is hatched, and the result is one big hatch object, even when parts look disconnected. If you edit the properties of any region later, then connected hatches are updated. This strategy is commonly used when hatching the cut faces of a cross section; all faces common to a single item automatically maintain matching hatch properties.
Choose Create Separate Hatches on the Options slideout panel when you want to modify each hatched area independently.
You can also select an area to hatch by picking objects that could define the boundary, but you must select enough objects to define a fully enclosed region.
Starting with AutoCAD 2014, when you’re picking in multiple bounded areas or selecting individual objects, the Hatch command includes an Undo option in case you accidentally pick the wrong area or object.
Island Detection: In the section “Creating Hatches,” you can see how the hatch pattern behaves when you select the region between the circles; it doesn’t hatch the inner circle. This is island detection. If you select specific objects for the boundary, island detection is turned off. If island detection is off and you select only the outer circle, the hatches run right over the inner circle. To learn more about island detection, consult the Help system.
No matter which selection method you choose, the boundary must usually be airtight. Boundary objects can overlap, but they can’t have leaks — not even microscopic ones. Technically, a fuzz factor can be set in AutoCAD to allow for tiny leaks. However, I don’t tell you how to set a fuzz factor because it defeats the purpose of drawing with precision.
Whenever you see the error message A Closed Boundary Could Not Be Determined, you need to adjust lines and other boundary objects so that they define a fully airtight boundary. The Hatch command displays red circles at gaps in the not-quite-enclosed area you want to hatch. Even when it doesn’t fix the gaps, it shows you where you should fix them. Sometimes, you can use the Fillet command with a 0 (zero) fillet radius or the Join command to force two lines to meet exactly,. Another possibility is to use grip editing to align one endpoint precisely with another with the assistance of Object Snap (see Chapter 11).
Pattern: The scroll arrows at the right edge of the Pattern panel give access to the 82 predefined hatch patterns, including nine solid and gradient fills that ship with AutoCAD. You can define two or three colors for the gradient fills, making them suitable for simulating curved surfaces or sunsets in the desert.
Hatch patterns are defined by external files named acad.pat
or acadlt.pat
in imperial units, and acadiso.pat
or acadltiso.pat
in metric. Each file includes the definitions for all patterns. You can create your own hatch patterns; the Customization Guide in the online Help system explains how. You can buy libraries of custom hatch patterns. Any pattern not defined in acad.pat
or acadiso.pat
is referred to as a custom pattern, but you must be careful when using them. Because they’re external files, they must be available to AutoCAD whenever anyone opens a drawing containing them. If you send the drawing to someone else, you must also send the pattern definition file(s), which can have copyright issues if you've purchased them.
Autodesk created a set of hatch patterns whose names begin with the characters AR- (that’s a hyphen at the end) for use in architectural drawings. Unlike non-AR patterns, they do represent real objects such as brick and roof shakes. The AR patterns were designed with a final hatch scale of 1.0 in mind, but in some cases you have to adjust up or down to achieve a suitable scale.
Hatches are annotation objects, just like text (see Chapter 13) and dimensions (see Chapter 14). Their size is independent of the geometry in the drawing. They impart important information and so must be clearly visible on the screen and on the printed page.
Like text and dimensions, hatches need to be scaled to suit the final drawing scale. Start with the common ANSI31 pattern. As defined, it produces parallel lines spaced 1/8″ apart. So far, so good — but what if you’re applying the cross section to a large part, such as the 10′ boom on a backhoe? Remember that you always draw at full size and then scale to suit the plot.
If you were to apply hatches at the nominal 1:1 scale and then plot at, say, 1:10 to fit the big boom on a small sheet of paper, the 1/8″ hatch spacing becomes a tiny 0.0125-inch spacing, which is plotted effectively as a solid fill. The information imparted by the pattern is lost. So, as with text and dimensions in this drawing, you apply to the hatches a scale factor, say 10. The hatch lines in the drawing file then are bumped up to 1.25 inches apart, which scales down to the correct 1/8″ apart when plotted. I discuss scale factors also in Chapter 4.
The easy way to scale a hatch pattern is to select the drawing scale from the Scale List button near the right end of the status bar, the same as you do for text (see Chapter 13) and dimensions (see Chapter 14), and then to turn on the Annotative option in the Options panel of the Hatch tab on the Ribbon. Now whenever you create hatches, they scale themselves correctly to suit the current plot scale.
In Chapter 14 (which describes dimensions), I strongly recommend turning off the Automatically Add Scales option when placing annotative text and dimensions, because you normally don’t want everything to show at every scale, especially when creating details at other scales. Hatches, on the other hand, normally do show in every view at every scale, scaled accordingly. You might be tempted to turn this option back on for hatches, but if you do, the first time you change the drawing scale, the new scale is added to all existing annotative objects. The best practice is to edit the hatches and manually add scales, the same as I discuss in Chapter 13 for text and Chapter 14 for dimensions.
Figure 15-5 illustrates two versions of the same drawing, one half dressed up with annotative hatch patterns and the other with non-annotative hatch patterns. As shown by the annotation scales displayed on the drawings’ status bars, annotative hatches change their scales automatically, whereas the size of the non-annotative hatches remains unchanged.
Chapter 14 shows another example: The hatches in both views are the same object, but because the viewports have different scales, the hatches adjust accordingly.
Before annotative hatches first appeared in AutoCAD 2008, the only way to create the effect in both drawings was to create separate layers (one for each hatch scale), hatch the object twice, and then freeze or thaw layers as needed.
In the remainder of this chapter, you discover how to refine hatch techniques. I describe how to copy existing hatches, take advantage of additional options in the Hatch and Gradient dialog box (which offers a bit more control than the Hatch Creation contextual tab), and choose more complicated hatch boundaries.
A minor problem is that you can’t create named styles for hatches, as you can for text and dimensions. The good news is that AutoCAD provides three workarounds to help offset this issue.
Plagiarism 101 — matching hatches: Suppose that a drawing has several different hatches with incorrect specifications. Fix them like this: Select a problem hatch, click the Match Properties button on the Hatch Editor tab, and then select a hatch with the correct properties. AutoCAD copies the properties from the second hatch to the first one, the reverse of what you might expect.
Plagiarism 201 — cloning hatches: Suppose that a drawing has several different styles of hatches applied, and now you want to hatch another area. You start the Hatch command, and the Hatch Creation contextual tab appears. Oops — it shows the specifications of the last hatch that was applied, which is quite different from what you want to do now. Click the Match Properties button in the Options panel of the Hatch Creation tab, or click the Inherit Properties button in the Hatch and Gradient dialog box. Pick an existing hatch, and — presto! — all settings are updated to match the selected hatch. You can use the cloned settings as is, or you can modify them.
Plagiarism 301 — creating hatches: Here’s a technique that even many experienced users miss. It’s remarkably easy to customize AutoCAD so that a single mouse click can produce any hatch style you want. Here’s how:
Apply a hatch with the properties you want.
Make sure that the existing hatch is on the correct layer and that the layer has all the correct properties.
Display the Tool Palette window.
Select the Tool Palettes tool in the Palettes panel on the View tab of the Ribbon, or enter the TOOLPALETTES command. (I discuss tool palettes in Chapter 2.)
Access the Hatches and Fills palette by clicking its tab.
If you can’t see this tab, click the overlapping edges of the tabs at the bottom of the palette window and select Hatches and Fills from the list that appears.
Create a new Hatch tool.
Click once to select the existing hatch object, pause, and then select it again. Drag it to the tool palette and drop it. Everything about the hatch is copied to the palette: pattern name, scale, colors, layer, and so on.
Don’t double-click too quickly, and don’t click the blue grip, or else you’ll be editing the existing object.
Use the new Hatch tool.
Click the Hatch tool, and then click inside a closed boundary in the drawing. Bingo — instant hatches to your specification.
You can also click and drag the desired pattern from the tool palette into the desired boundary.
If you start a new drawing, create a boundary, and then use the Tool Palette to hatch it, you may be amazed to find that the new hatches in the new drawing are on the correct layer. If the correct layer doesn’t exist in the new drawing, AutoCAD creates it to match the original specifications automatically — a process known as standardization through customization.
You can use predefined, custom, and user-defined hatch patterns. Most of the time, you’ll choose predefined hatch patterns, unless some generous soul did the hard work of writing a custom pattern for you. On the other hand, I haven’t employed a user-defined pattern in over 25 years of using AutoCAD because these hatches consist solely of continuous lines: All you can define are the spacing, the rotation angle, and whether the lines are cross-hatched. All this already exists in the set of predefined patterns.
An alternative to using the Ribbon to define patterns is the Hatch and Gradient dialog box, as shown in Figure 15-6. You don’t see the hatch object updating as you change settings (as you do with the Ribbon), but the dialog box gives you more control over what you end up with. To display the Hatch and Gradient dialog box, click the dialog box launcher (the tiny arrow at the right end of the Options panel on the Hatch Creation tab of the Ribbon).
Using predefined hatch patterns in the Hatch and Gradient dialog box requires two steps. First, select Predefined from the Type drop-down list at the top of the dialog box. Then specify the pattern you want in one of two ways:
Figure 15-7 shows all predefined hatch patterns included with AutoCAD, covering everything from dirt to Escher to stars.
AutoCAD treats filling an area with a solid color as a type of hatch. Simply choose SOLID from the top of the Pattern drop-down list. You also see several gradient-fill options, where one color gradually changes to another. The bottom of Figure 15-7 shows examples of gradient fills.
Like any other object, a solid hatch takes on the current layer’s color when you maintain (as you should) the color as ByLayer. It takes on the current object color override when people who don’t know what they’re doing alter the drawing. Therefore, check whether the current object layer and color are set appropriately before you use the Solid hatches option. (See Chapter 9 for details.)
The transparency object property in AutoCAD is probably most useful (in 2D, anyway) when applied to solid fills. You can use transparent solid fills to demarcate (distinguish) areas on architectural floor plans or aerial photographs of project sites, while letting text and symbols show clearly. In addition to ByLayer and Solid settings, make sure that the current object or layer transparency is set correctly, too.
Editing an existing hatch pattern is easy after you’re familiar with the Hatch Creation tab on the Ribbon. Follow these steps:
Select the hatch object.
AutoCAD opens the Hatch Editor contextual tab on the Ribbon and displays the hatch object’s current settings.
Alternatively, you can use the Properties palette or the Quick Properties palette (described in Chapter 9) to make most of the changes to existing hatch patterns. AutoCAD always displays the Hatch Editor tab when you click a hatch object, and it opens the Quick Properties palette when the QP button is turned on. The Properties palette is especially useful for changing several hatches at a time.
Simple grip-editing is also available. Select a hatch and then hover the cursor over the round, blue center grip. A contextual menu opens to give you quick access to changing the hatch origin, angle, and scale. Don’t be misled by the Stretch option on the context menu, though: It only moves the hatch, and then it loses its associativity to its boundary.
Here are a few other hatch tips: