Hatch Boundary
Association
Learn how AutoCAD links hatch patterns to boundary geometry, and master the skills to recreate or reassociate boundaries when they break.
What Is a Hatch in AutoCAD?
A hatch is a pattern or solid fill applied to a closed area in your drawing. It visually represents materials like concrete, steel, insulation, or simply shading in a section view.
What Is Boundary Association?
Boundary association is the live link between a hatch object and the geometry that defines its edges. When association is active, moving or resizing the boundary automatically updates the hatch to match.
Why Does Association Matter?
In real-world drafting, designs change constantly. Walls move, openings resize, and section boundaries shift. Without association, every hatch must be manually re-created after each edit.
The Core Rule of Association
Once the boundary is no longer a closed loop, the hatch becomes orphaned. You must either recreate the boundary or reassociate the hatch with new geometry.
Lifecycle of a Hatch Association
Recreate vs. Reassociate
| Recreate Boundary | Reassociate Hatch | |
|---|---|---|
| What It Does | Generates a new polyline boundary from the hatch's stored shape | Links an existing hatch to a new or repaired boundary |
| Command | HATCHGENERATEBOUNDARY (or right-click menu) | HATCHEDIT → Reassociate |
| When to Use | Boundary was deleted entirely | Boundary was modified and you want the hatch to follow new geometry |
| Result | New boundary object created on current layer | Hatch snaps to the new closed geometry |
How to Recreate a Boundary
How to Reassociate a Hatch
The HPGAPTOL Variable
AutoCAD has a system variable called HPGAPTOL (Hatch Pattern Gap Tolerance) that sets the maximum gap size that AutoCAD will treat as closed when detecting a boundary.
Example 1: Recreating a Deleted Boundary
Example 2: Reassociating to New Walls
Example 3: Complex Boundary Repair
Sometimes the boundary involves multiple objects: lines, arcs, and polylines that together form a closed loop. If one piece is moved, the loop breaks.
Common Mistakes
Summary of Key Commands
| Command / Variable | Purpose | When to Use |
|---|---|---|
| HATCH | Create a new hatch pattern | Starting fresh |
| HATCHEDIT | Modify hatch properties and boundaries | Changing pattern, scale, or reassociating |
| HATCHGENERATEBOUNDARY | Create new polyline boundary from hatch | Boundary was deleted |
| HPASSOC | Toggle associative hatch creation | Setting default behavior (1 = on, 0 = off) |
| HPGAPTOL | Set gap tolerance for boundary detection | Working with imported or imprecise geometry |
Question 1 of 5
What does "associative" mean when applied to a hatch in AutoCAD?
Question 2 of 5
A hatch loses its boundary association. Which action most likely caused this?
Question 3 of 5
You have an orphaned hatch and want to create a new boundary polyline from its shape. Which command should you use?
Question 4 of 5
The system variable HPGAPTOL controls:
Question 5 of 5
Why is using EXPLODE on a hatch almost always a bad idea?