# HATCH Command
[GstarCAD 2020](Help%20System/GSTARCAD/2020/Index.md) → [Commands](Help%20System/GSTARCAD/2020/Commands/(Commands).md) → [H](Help%20System/GSTARCAD/2020/Commands/H/(H).md)
The HATCH command is used to fill closed regions or specified objects by Hatch pattern, solid fill, or gradient fill.
## Command Access:
> **Ribbon:** Home \> Draw \> Hatch \> Hatch **Menu:** Draw \> Hatch... **Command:** HATCH
## Function Description:
> Inputting "-hatch" under command prompt, it will display options.
> **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 could avoid some problems about memory and performance. User could use the HPMAXLINES system variable to change this limited number.
> Users could use the following ways to select hatch boundaries:
> **Add: Pick points:** select point in closed region.
> **Add: Select objects:** select object in closed region.
> Use "-HATCH" options to specify boundary.
>
> 
## Other versions with matching text
[GstarCAD 2016](../../../2016/Commands/H/HATCH%20Command.md) · [GstarCAD 2017](../../../2017/Commands/H/HATCH%20Command.md) · [GstarCAD 2018](Help%20System/GSTARCAD/2018/Commands/H/HATCH%20Command.md) · [GstarCAD 2019](Help%20System/GSTARCAD/2019/Commands/H/HATCH%20Command.md) · [GstarCAD 2021](Help%20System/GSTARCAD/2021/Commands/H/HATCH%20Command.md)