People search Help for hatch and hatch related information every day. Things like 'how do I change the hatch origin', or 'how do I change the hatch scale' and so on. In this article we'll cover some of the most common areas you might have searched help for on hatch.
First, let's review the basic steps to apply a hatch to a closed area. We won't cover every possible option but just some of the basics. To get started we'll use these 3 simple shapes.
Select the hatch that was created. Notice there's a single hatch grip? By default, when you apply a hatch to multiple areas the result is a single hatch object. In this example, any change you make to this single hatch object will affect all three of the objects.
But wait, what if you wanted these to be separate hatch objects so you can change the properties of each hatch separately. Maybe you want one to be a different scale or angle. You don't have to create three separate hatches for this.
The result is that each hatch area is now its own hatch object and can be edited and changed separately.
When applying or editing a hatch, you may want to assign properties like angle, scale, origin and so on.
Have you ever added hatch to a drawing and the hatch appears on top of or overlaps other objects? You can use draw order to move the hatch forward or backward in the drawing.
Hatch options can be set with system variables. Some hatch related system variables are saved across sessions, some are saved in the drawing, while others revert to the default each time a new drawing or session is started. Here is a list of the more commonly used hatch related system variables. the defaults, and how they are saved.
System Variable | Description | Default Value | Saved In |
---|---|---|---|
HPANG | Sets the default angle for new hatch patterns in this drawing | 0.00 | Not saved |
HPBACKGROUNDCOLOR | Sets the default background color for new hatch patterns in the current drawing | None | Drawing |
HPCOLOR | Sets the default color for new hatches in the current drawing | Use current color | Drawing |
HPDLGMODE | Controls the display of the Hatch and Gradient dialog box and the Hatch Edit dialog box | 2 = Hatch and Gradient dialog box is not displayed for HATCH and GRADIENT when the ribbon is active (RIBBONSTATE = 1). When the ribbon is inactive (RIBBONSTATE = 0), the Hatch and Gradient dialog box is displayed. | User-settings |
HPDRAWORDER | Controls the default draw order of new hatches and fills in this session | 3=Send behind boundary. The hatch or fill is sent behind the hatch's boundary objects. | Not saved |
HPGAPTOL | Specifies the maximum gaps between a set of objects that almost enclose an area to still be treated as a closed hatch boundary | 0.00 | Registry |
HPNAME | Sets the default hatch pattern name in this drawing | ANSI31 (imperial) or ANGLE (metric) | Not saved |
HPLAYER | Specifies a default layer for new hatches and fills in the current drawing | Use current layer | Drawing |
HPORIGIN | Sets the hatch origin point for new hatch patterns relative to the current user coordinate system in the current drawing | 0.00 | Drawing |
HPORIGINMODE | Controls how the default hatch origin point is determined | 0=Uses HPORIGIN. Other values correspond to the points on the rectangular extents of the hatch boundaries | Registry |
HPSCALE | Sets the default scale factor for new hatch patterns in this drawing | 1.00 | Not saved |
HPSEPARATE | Controls whether a single hatch object or separate hatch objects are created when operating on several closed boundaries | 0=A single hatch object is created | Registry |
See the Help topic Commands for Hatches and Gradients for a more complete list of hatch related system variables. Hover over the variable name to see a brief description.
See this previous Have You Tried article to see how to add hatch to a tool palette. Using the tool palettes makes it easy to insert hatch with preset patterns and properties.