HATCH Command

Fills an area with a nonassociative hatch pattern

Command line: hatch

Enter pattern name or ? / Solid / User defined <ASNI31>: Enter the name of a predefined or custom pattern name, enter s, enter u, enter ?, or press ENTER


A nonassociative hatch is not updated when its boundaries are modified. A hatch boundary consists of an object or objects that completely enclose an area. If the boundary is made up of multiple objects, their endpoints must coincide for the hatch to be created properly. You can also define a polyline hatch boundary with the direct hatch option.

Unless you specify otherwise, HATCH combines the lines that make up the hatch into a block.

Hatches are stored as single hatch objects, which can reduce the amount of disk space a drawing occupies, and also can reduce regen times.

The hatch entity limit is set by the MaxHatch environment setting, which is stored in the AutoCAD LT General section of the aclt.ini file. Its default value is 10000; however, if you must create very dense hatches, you can edit the MaxHatch environment setting through the SETENV command.

List Pattern Names (HATCH)

Lists and provides a brief description of the hatch patterns defined in the aclt.pat and acltiso.pat files.

Pattern(s) to list <*>: Enter a name list or press ENTER

Pattern Name (HATCH)

Specifies a pattern defined in the aclt.pat and acltiso.pat files. Enter the name followed by an optional hatch style code. Precede the name with an asterisk (*) to fill the area with individual lines instead of a hatch block.

Scale for pattern <current>: Specify a value or press ENTER

If the drawing is in model space and you enter a scale factor followed by xp, AutoCAD LT calculates a scale factor relative to paper space.

Angle for pattern <current>: Specify an angle or press ENTER
Select hatch boundaries or press ENTER for direct hatch option,
Select objects: Select objects or press ENTER to define a polyline boundary

Select Objects

Select objects that define the boundary of the hatching area and objects internal to the hatching boundary. Selecting part of a block for hatching selects the entire block.

Direct Hatch

Specify points that define the boundary of the hatching area.

Retain polyline? <current>: Enter y to retain the hatching boundary after the area is hatched or n to discard it

From point: Specify a start point for the polyline boundary
Arc / Close / Length / Undo / <next point>: Specify a point, enter an option, or press ENTER

These options are also found in the PLINE command. When you've completed the polyline boundary, HATCH prompts to create additional polyline boundaries.

From point or ENTER to specify hatch: Specify a point or press ENTER

If you specify a point, AutoCAD LT prompts for additional points. Pressing ENTER ends the command and creates the hatch.

Solid (HATCH)

Specifies a solid fill.

Select hatch boundaries or ENTER for direct hatch option,
Select objects:
Select objects or press ENTER to define a polyline boundary

Select Objects

Uses the selected objects to define the outer boundary of the fill area and objects internal to the fill boundary. Selecting part of a block for solid fill selects the entire block.

Direct Hatch

Uses specified points to define the boundary of the fill area.

Retain polyline? <current>: Enter y to retain the fill boundary or n to discard it after the area is filled
From point: Specify a start point for the polyline boundary
Arc / Close / Length / Undo / <Next Point>: Specify a point, enter an option, or press ENTER

These options are also found in the PLINE command. When you've completed the polyline boundary, HATCH prompts to create additional polyline boundaries.

From point or ENTER to specify hatch: Specify a point or press ENTER

If you specify a point, AutoCAD prompts for additional points. Press ENTER to end the command and create the solid fill.

The boundary of a solid fill hatch must be closed and must not intersect itself. In addition, if the hatch area contains more than one loop, the loops must not intersect. These limitations do not apply to standard hatch patterns.

User-Defined Pattern Name (HATCH)

Specifies a pattern of lines using the current linetype. Enter u, followed by an optional hatch style code. Precede the u with an asterisk (*) to fill the area with individual lines instead of a hatch block.

Angle for crosshatch lines <current>: Specify an angle or press ENTER
Spacing between lines <current>: Specify the distance between the lines or press ENTER
Double hatch area? <current>: Enter y to specify a second set of lines to be drawn at 90 degrees to the original lines or press ENTER
Select hatch boundaries or ENTER for direct hatch option,
Select objects: Select objects or press ENTER to define a polyline boundary

Select Objects

Select objects that define the boundary of the hatching area and objects internal to the hatching boundary. Selecting part of a block for hatching selects the entire block.

Direct Hatch

Specify points that define the boundary of the hatching area.

Retain polyline? <current>: Enter y to retain the hatching boundary after the area is hatched or n to discard it
From point: Specify a start point for the polyline boundary
Arc / Close / Length / Undo / <Next point>: Specify a point, enter an option, or press ENTER

These options are also found in the PLINE command. When you've completed the polyline boundary, HATCH prompts to define additional polyline boundaries.

From point or ENTER to apply hatch: Specify a point or press ENTER

If you specify a point, AutoCAD LT prompts for additional points. Pressing ENTER ends the command and creates the hatch.

Hatch Style Codes (HATCH)

Hatching styles control the method that AutoCAD LT uses to hatch internal boundary objects. Specify a hatch style by following the pattern name with a comma, and the hatch style code. You can list the hatch style codes by the pattern name, a comma, and ? (question mark). To hatch only the outermost area of a structure with several internal boundaries using the MUDST pattern, enter mudst,o at the Pattern prompt. To opt for a user-defined pattern and use the Ignore style, enter u,i. AutoCAD LT stores the style by adding the comma and code to the pattern name in the HPNAME system variable.

n (Normal) Hatches inward from the outermost area boundary. If and when it encounters an internal boundary, turns off hatching until it encounters another boundary. Thus, areas separated from the outside of the hatched area by an odd number of boundaries are hatched, while areas separated by an even number of boundaries are not.
o (Outer) Fills outermost areas only. This style also hatches inward from the area boundary, but it turns off hatching if it encounters an internal boundary and does not turn it back on again. Because this process starts from both ends of each hatch line, only the outermost area of the structure is hatched, and the internal structure is left blank.
i (Ignore) Ignores internal structure. This style hatches through all internal objects.
? (List Styles)Lists hatch styles.

Note: Hatching concave curves using the Outer and Ignore style options can cause discrepancies.

Related Commands: BHATCH fills an enclosed area with an associative hatch pattern.
System Variables: HPANG sets the hatching angle. HPDOUBLE specifies whether a user-defined hatch is double-hatched. HPNAME sets the hatch pattern name. HPSCALE sets the hatch pattern scale. HPSPACE sets the spacing of a user-defined hatch pattern. SNAPBASE specifies the starting point of the hatch pattern.