# 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:** ![](Help%20System/GSTARCAD/2027/assets/561bb0c96633f413b4b9242a1d39d5af72f314a2c0c26bc631712076e07cf0ad.png) > **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. ![](Help%20System/GSTARCAD/2027/assets/cbf62452f22110a0a1cfcaddd493def8258fb3c3d9723943d4b6e732c0a27ad2.jpg). --- **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.