Overview of Hatch Patterns and Fills
 
 
 

You can hatch an area using a predefined hatch pattern, define a simple line pattern using the current linetype, or create more complex hatch patterns. One type of pattern is called solid, which fills an area with a solid color.

You can also create a gradient fill, which uses a transition between shades of one color or between two colors. Gradient fills can be used to enhance presentation drawings, giving the appearance of light reflecting on an object.

Define the Boundaries of a Hatch

You can choose from several methods to specify the boundaries of a hatch.

When you hatch a drawing, whole or partial objects that are not part of the object boundary are ignored.

If a hatch line encounters an object such as text, an attribute, or a solid-fill object, and if the object is selected as part of the boundary set, HATCH hatches around the object.

NoteIf you want to hatch an area whose boundary is not quite closed, you can set the HPGAPTOL system variable to bridge gaps and treat the boundary as closed. HPGAPTOL applies only to gaps between lines and arcs that, if extended, would meet.

To reduce file size, a hatched area is defined in the drawing database as a single graphical object.

Add Hatch Patterns and Solid Fills

You can use several methods to add hatch patterns to your drawing.

Control the Hatch Origin

By default, hatch patterns always “line up” with each other. However, sometimes you might need to move the starting point, called the origin point, of the hatch. For example, if you create a brick pattern, you might want to start with a complete brick in the lower-left corner of the hatched area. In that case, use the Hatch Origin options in the Hatch and Gradient dialog box.

The location and behavior of a hatch pattern depends on the HPORIGIN, HPORIGINMODE, and HPINHERIT system variables, and the location and orientation of the user coordinate system.

Choose a Hatch Pattern

The program supplies a solid fill and more than 50 industry-standard hatch patterns that you can use to differentiate the components of objects or represent object materials. The program also comes with 14 hatch patterns that conform to the ISO (International Standards Organization) standards. When you select an ISO pattern, you can specify a pen width, which determines the lineweight in the pattern.

On the Hatch tab of the Hatch and Gradient dialog box, the Type and Pattern area displays the names of all the hatch patterns defined in the acad.pat text file. You can add new hatch patterns to the dialog box by adding their definitions to the acad.pat file.

Create Associative Hatches

An associative hatch is updated when you change the boundary. Hatched areas created with HATCH are associative by default. This setting is stored in the system variable HPASSOC. Hatches created by dragging hatch patterns from tool palettes or DesignCenter™ use the setting in HPASSOC. You can remove hatch associativity at any time or use HATCH to create a nonassociative hatch. When the HPGAPTOL system variable is set to 0 (the default), associativity is automatically removed if editing creates an open boundary.

You can use HATCH to create nonassociative hatches, which are independent of their boundaries.

Create an Annotative Hatch

An annotative hatch is defined at a paper size. You can create individual annotative hatch objects as well as annotative hatch patterns.

Use an annotative hatch to symbolically represent material such as sand, concrete, steel, earth, etc.

For more information about creating and working with an annotative hatch, see Create Annotative Hatches.

Assign a Draw Order to a Hatch

You can assign a draw order to a hatch so that it is drawn either behind or in front of the hatch boundary, or behind or in front of all other objects.

When you create a hatch, by default the hatch is drawn behind the hatch boundary. This makes it easier to view and select the hatch boundary. You can change the draw order of the hatch so that the hatch is drawn in front of the hatch boundary instead, or either behind or in front of all other objects. This setting is stored in the HPDRAWORDER system variable. Hatches created by dragging hatch patterns from tool palettes or DesignCenter use the draw order setting in HPDRAWORDER.

Limit Hatch Pattern Density

If you create a very dense hatch, the program may reject the hatch and display a message indicating that the hatch scale is too small or its dash length too short. You can change the maximum number of hatch lines by setting the HPMAXLINES system variable. You can set values between 100 and 10000000 (ten million). The default value for HPMAXLINES is 1000000.

Edit Hatch Boundaries

Because there are so many combinations of objects that can be hatched, editing hatched geometry can produce unexpected results. If you create a hatch that you don't want, you can undo it, trim the hatch, or delete the hatch and rehatch the area.

Create Custom Hatch Patterns

You can also define your own hatch pattern using the current linetype with the User Defined Pattern option of the Hatch and Gradient dialog box, or you can create more complex hatch patterns.

See Also