Home / Articles / Hatch not filling? Fix an open boundary
Troubleshooting · 2D drafting

Hatch not filling? Fix an open boundary

6 min read · updated 10 Nov 2026

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.

gap at the corner pattern leaks out — boundary open
A tiny gap at the top-right corner (magnified) stops hatch finding a closed boundary, so the pattern won't fill or leaks outside the area.

Five common causes and their fixes

SymptomCauseFix
Nothing fills at allA gap where two line ends don't quite meetZoom into each corner, drag the ends together, or use offset/extend to make them meet
Pattern leaks outside the areaOpen boundary, so the fill flows everywhereClose the boundary into one loop, then hatch again
Fill looks doubled or too denseTwo lines stacked in the same placeSelect the line and delete the duplicate underneath (see the duplicate-lines article)
Program can't find an area on clickClicked outside a closed region, or an overshooting line cuts itClick inside the real area and trim any line that runs past the corner
Only part of the area fillsA stray internal line splits the regionDelete the line crossing the middle, or hatch each sub-area

How to find the gap

  1. Zoom into each corner. Most gaps hide at corners — zoom in close enough to see whether the two line ends actually meet.
  2. Measure with M (measure). Click the two line ends that should join. Any value greater than 0 means there is a gap.
  3. Check for overshoots. A line running past a corner makes the program see the area as cut. Use trim to clean the overshoot.
  4. 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 Online

Close the boundary before hatching

The surest fix is to make the boundary one fully closed loop first, then hatch.

  1. 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.
  2. Clean overshoots with trim so every corner meets exactly.
  3. Run hatch and click inside the closed area — the pattern fills at once.
  4. 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.
Why lines don't meet: it's the same root cause as an open polyline. If it keeps happening, see the related article on joining lines into a closed loop — a closed boundary is the one thing hatch requires.

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.