Hatch not filling? Fix an open boundary
You run hatch and nothing fills, or the pattern leaks out across the drawing. Almost every time this comes down to one cause: the boundary isn't fully closed. Hatch needs an area enclosed by a continuous loop with no leaks. This guide walks through the common causes and shows how to find the gap and fix it so the pattern fills exactly the area you want.
Why hatch needs a closed area
The hatch command finds a "closed boundary" around the point you click and fills inside it. If the boundary has even a tiny gap, the program can't find a boundary, so nothing fills — or the pattern "leaks" out through the gap. A gap of 0.01 mm, far too small to see, is enough to stop hatch working.
Five common causes and their fixes
| Symptom | Cause | Fix |
|---|---|---|
| Nothing fills at all | A gap where two line ends don't quite meet | Zoom into each corner, drag the ends together, or use offset/extend to make them meet |
| Pattern leaks outside the area | Open boundary, so the fill flows everywhere | Close the boundary into one loop, then hatch again |
| Fill looks doubled or too dense | Two lines stacked in the same place | Select the line and delete the duplicate underneath (see the duplicate-lines article) |
| Program can't find an area on click | Clicked outside a closed region, or an overshooting line cuts it | Click inside the real area and trim any line that runs past the corner |
| Only part of the area fills | A stray internal line splits the region | Delete the line crossing the middle, or hatch each sub-area |
How to find the gap
- Zoom into each corner. Most gaps hide at corners — zoom in close enough to see whether the two line ends actually meet.
- Measure with M (measure). Click the two line ends that should join. Any value greater than 0 means there is a gap.
- Check for overshoots. A line running past a corner makes the program see the area as cut. Use trim to clean the overshoot.
- Check for duplicates. Drag a boundary line aside to see if another line sits underneath. If so, delete the duplicate.
Try it right now — a free 2D CAD in your browser. Nothing to install, no sign-up.
Open DXCAD2D OnlineClose the boundary before hatching
The surest fix is to make the boundary one fully closed loop first, then hatch.
- Drag the loose line ends together, or if you can redraw, use PL (polyline), click every corner, and close back to the first point for a guaranteed closed loop.
- Clean overshoots with trim so every corner meets exactly.
- Run hatch and click inside the closed area — the pattern fills at once.
- Set the spacing and angle for the material (for example a 45° pattern for a section view) — see the section-views and hatching article for guidance.
Frequently asked questions
Why won't my hatch fill
Almost always because the boundary isn't fully closed — a small gap where line ends don't quite meet. The program can't find a closed area, so nothing fills or the pattern leaks out.
How do I find the gap stopping a hatch
Zoom into each corner to see whether the line ends actually meet, and press M (measure) to click the two ends that should join. Any distance above 0 means there is a gap there.
How do I stop a hatch leaking outside the area
An open boundary lets the fill flow out. Close it into one loop — drag the ends together or redraw with a polyline and close back to the first point — then hatch again.
How small a gap stops a hatch from filling
Even a 0.01 mm gap, far too small to see, can stop a hatch filling, which is why you measure the join rather than trusting your eye.
Summary
Hatch always needs a fully closed area. If it won't fill or it leaks, suspect a gap at a corner first: zoom in and measure to confirm, then close the boundary by dragging the line ends together or redrawing it as a closed polyline. Trim overshoots and delete duplicate lines. Once the boundary is closed, click inside and the hatch fills at once.