# HATCHSETBOUNDARY Command
[GstarCAD 2022](Help%20System/GSTARCAD/2022/Index.md) → [Commands](Help%20System/GSTARCAD/2022/Commands/(Commands).md) → [H](Help%20System/GSTARCAD/2022/Commands/H/(H).md)
## Function Description:
This command is used to redefine a selected hatch or fill to confirm to a
different closed boundary. Trims a selected hatch to within a selected boundary
or geometry.
## Command Access:
> **Icon:** /
> **Menu:** /
> **Ribbon:** /
> **Toolbar:** /
> **Command:** HATCHSETBOUNDARY
> **Alias:** /
> **Shortcut:** Select hatch object and right-click, click
> Set Boundary
## Command Prompts:
Select hatch object:
Select object to be used for the new boundary:

## Select hatch object
Selects hatch objects to be trimmed.
## Select object to be used for the new boundary
Selects the new boundary or geometry.