# HATCH Command
[GstarCAD 2027](Help%20System/GSTARCAD/2027/Index.md) → [Commands](Help%20System/GSTARCAD/2027/Commands/(Commands).md) → [H](Help%20System/GSTARCAD/2027/Commands/H/(H).md)
## Function Description:
This command is used to fill an enclosed region or selected objects with a hatch pattern, solid fill, or gradient fill. The Hatch and Gradient dialog box is displayed. If you enter -HATCH at the Command prompt, options are displayed.
**Note**: To avoid creating a large number of hatch lines, the maximum number of hatch lines is limited in a single hatch operation. This limit can avoid some problems about memory and performance. User can use the HPMAXLINES system variable to change the maximum number.
## Command Access:
> **Icon:** 
> **Menu:** Draw > Hatch...
> **Ribbon:** Home > Draw > Hatch
> **Toolbar:** Draw > Hatch
> **Command:** HATCH
> **Alias:** H
**Command Prompts: /**
Users can use the following ways to specify the boundaries of a hatch:
- Select a point in an enclosed area.
- Select objects that enclose an area.
- Use -HATCH options to specify boundary points.
.
---
**Related References:**
- [Commands about Hatches and Gradients (GstarCAD 2026)](../../../2026/Commands/00%20Command%20Groups/Commands%20about%20Hatches%20and%20Gradients.md)
**Related Concepts:**
- [About Defining Hatch Boundaries (GstarCAD 2026)](../../../2026/Commands/02%20Concepts/About%20Defining%20Hatch%20Boundaries.md)
**Related Tasks:**
- [To Hatch or Fill an Object or an Area (GstarCAD 2026)](../../../2026/Commands/01%20Procedures/To%20Hatch%20or%20Fill%20an%20Object%20or%20an%20Area.md)
- [To Create an Unbounded Hatch (GstarCAD 2026)](../../../2026/Commands/01%20Procedures/To%20Create%20an%20Unbounded%20Hatch.md)
---
[Original help](https://www.gstarcad.net/help/GstarCAD_2027_en-US/detail/commandReferences_H/HATCH.html) · © Gstarsoft Co., Ltd.