# HATCHSETBOUNDARY 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 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.
---
**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/HATCHSETBOUNDARY.html) · © Gstarsoft Co., Ltd.