You click inside a room, run HATCH, and AutoCAD refuses with "Valid hatch boundary not found." Or the hatch appears, then vanishes when you plot. Hatching problems are among the most common AutoCAD frustrations, but most come down to a handful of causes: tiny gaps, too many objects in the boundary search, display limits or a damaged drawing. This guide walks through each one with practical fixes you can try in a few minutes.
Fix 1: Close the gaps with HPGAPTOL (gap tolerance)
When you pick a point inside an area, AutoCAD looks for objects that completely enclose it. By default, there must be no gap at all. If two lines miss each other by even a fraction of a unit, the hatch fails, and AutoCAD marks the problem spots with red circles.
The gap tolerance setting tells AutoCAD to ignore small openings. According to Autodesk's documentation, it is stored in the HPGAPTOL system variable, accepts values from 0 to 5000 in drawing units, and defaults to 0. Any gap equal to or smaller than the value is treated as closed.
- Use the DIST command to measure the gap between the two loose ends.
- Type HPGAPTOL at the command line and enter a value slightly larger than that distance. You can also set it from the Options drop-down on the contextual Hatch ribbon tab, or from the Gap Tolerance field in the expanded Hatch and Gradient dialog.
- Run HATCH again and pick inside the area.
- When AutoCAD warns that the boundary is not closed, choose to continue hatching this area.
Two cautions from Autodesk reseller Arkance: a hatch created across gaps is not associated with the original boundary, and a value set far too high can give strange, unwanted results. Keep it just above the real gap, and reset it to 0 when you are done.
Fix 2: Control the boundary set and islands
In large drawings, the pick-point method may evaluate every object visible in the current viewport, which can be slow and can pick up stray geometry. Autodesk's More Options settings let you define a New boundary set so only the objects you select are considered. That way you can skip clutter without hiding or deleting anything.
Island detection also matters. Normal alternates hatching inward around nested islands, Outer (Autodesk's recommended mode) hatches only the outer area and leaves internal islands alone, and Ignore hatches straight through everything inside. If a hatch is skipping text or small shapes you expected to be covered, try switching the mode.
When pick points keep failing, change tactics: draw a closed polyline over the area (the RECTANG command already creates one) and use Select Objects instead. Turning on Retain Boundaries (HPBOUNDRETAIN) also leaves a polyline or region around each new hatch, which is handy for later edits. If you work with external references, our guide to attaching an XREF to multiple drawings pairs well with this tip.
Fix 3: Hatches missing on screen or in plots
Sometimes the hatch exists but you cannot see it. Autodesk reseller IMAGINiT lists several common culprits and settings to check:
- HPMAXLINES - limits how many hatch lines are displayed. The default is 100000 and the range runs from 100 to 10000000. Raise it (for example to 1000000), run REGENALL, and reset it later because high values can slow things down.
- FILLMODE - set it to 1 so fills are shown; 0 turns them off.
- Hatch scale - a scale that is far too small or too large can make a pattern look solid or empty. Adjust it in the Properties palette, or set HPSCALE for new hatches.
Fix 4: Clean up a damaged drawing
If hatches still misbehave, the file itself may be the problem. IMAGINiT suggests recreating the affected hatches, then running AUDIT and answering Y to fix errors. If plotting still fails, use WBLOCK to write the model space objects to a fresh drawing and test there. Damaged viewports can also stop hatches from plotting, in which case recreating the viewport is the fix.
- Save a backup copy of the drawing.
- Run AUDIT and choose to fix any errors detected.
- Delete and recreate the problem hatch.
- If needed, WBLOCK the content into a new file and test again.
Clean drawings also make other features behave better, from layouts to dynamic blocks.
Conclusion
Most "hatch not working" moments are not bugs. Start with the boundary: measure any gaps and set HPGAPTOL just above them, limit the boundary set in busy drawings, and pick the right island mode. If the hatch exists but will not show or plot, check HPMAXLINES, FILLMODE and scale. Finally, AUDIT or WBLOCK a drawing that seems damaged. Work through these in order and you will usually be hatching again within minutes.
