01 / 20

Hatch Boundary
Association

Learn how AutoCAD links hatch patterns to boundary geometry, and master the skills to recreate or reassociate boundaries when they break.

AutoCAD

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.

Boundary (Rectangle) Hatch Pattern Linked to boundary

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.

Associative
Hatch updates when its boundary geometry is moved, stretched, or trimmed.
Non-Associative
Hatch stays fixed regardless of changes to surrounding geometry.

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.

Time Savings
Associated hatches auto-update, eliminating tedious rework on edits.
Accuracy
The hatch always matches the boundary exactly: no gaps, no overlaps.
Professional Output
Clean section views and material representations in construction documents.

The Core Rule of Association

✓ Associated Boundary intact → Erase a side ✕ Association Lost Boundary broken (gap)

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

1. Create HATCH command 2. Associated Live link active 3. Edit Boundary Move / Stretch / Trim Closed? Yes Broken 4. Orphaned Association lost 5. Reassociate

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

1
Select the orphaned hatch by clicking on it in the drawing.
2
Right-click and choose Generate Boundary from the context menu (or type HATCHGENERATEBOUNDARY).
3
AutoCAD creates a new polyline that traces the hatch outline on the current layer.
4
The hatch is now automatically associated with this new boundary.

How to Reassociate a Hatch

1
Double-click the hatch to open the Hatch Editor ribbon tab (or type HATCHEDIT).
2
In the Boundaries panel, click Select New Boundary (or Reassociate).
3
Click inside the new closed region where you want the hatch to fill. The region must form a complete loop.
4
Press Enter to confirm. The hatch reshapes to fill the new boundary.

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.

tiny gap ✓ HPGAPTOL handles it large gap ✕ Too large for tolerance

Example 1: Recreating a Deleted Boundary

Before Boundary deleted: orphaned hatch → Generate Boundary After New polyline boundary created

Example 2: Reassociating to New Walls

Original Room
\(160 \times 120\) room
→ Wall moved Expanded Room Hatch fills new boundary

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.

1
Identify the gap: Zoom in closely where the hatch pattern appears to "leak" or disappear. This is where the boundary is broken.
2
Repair the geometry: Use FILLET with radius 0, EXTEND, or TRIM to close the gap between objects.
3
Reassociate: Double-click the hatch → Select New Boundary → pick inside the repaired region.
4
Verify: Grip-edit a boundary object to confirm the hatch moves with it.

Common Mistakes

✕ Exploding the Hatch
Exploding a hatch converts it into individual lines, permanently destroying association and making it nearly impossible to edit as a pattern.
✕ Ignoring Layer Standards
After "Generate Boundary," the new polyline lands on the current layer. Forgetting to move it to the correct layer causes confusion in the drawing.
✕ Leaving HPGAPTOL Too High
Setting gap tolerance very high may cause hatches to "leak" through intentional openings like doors and windows in floor plans.

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?