# HATCHSETBOUNDARY 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 HATCHSETBOUNDARY command is used to hatch specified new boundary by selected hatch object.
Command Access:
> **Command:** HATCHSETBOUNDARY
> **Shortcut:** select hatch object and right-click, click "Set Boundary"
Command Prompts:
> Select hatch object:
> Select object to be used for the new boundary:
> Do you want to delete the selected linear? \[Yes/No\]\<N\>:
Function Description:
This command could trim selected hatch object and hatch specified new boundary or geometric figure.

## Other versions with matching text
[GstarCAD 2018](../../../2018/Commands/H/HATCHSETBOUNDARY%20Command--ef05edcb34be.md) · [GstarCAD 2019](../../../2019/Commands/H/HATCHSETBOUNDARY%20Command--ef05edcb34be.md) · [GstarCAD 2021](../../../2021/Commands/H/HATCHSETBOUNDARY%20Command--ef05edcb34be.md)