AutoCAD – Drawings

Hatch not working in AutoCAD: four causes and how to tell them apart

Hatch not working in AutoCAD has four separate causes, each with its own fix. How to tell which one you have instead of trying every setting in turn.

  • TS. Đỗ Quốc Hoàng
  • 9 min read
Four causes of a hatch that will not appear, each branch with its own sign and its own fix Photo: Diagram by the Institute of Information Technology in Civil Engineering

You type H, pick a point inside a wall, and nothing happens. Or something happens and the area still reads blank. Hatch not working in AutoCAD is not one fault but four quite different ones, and treating the wrong one costs you an afternoon.

This article separates the four causes and gives each one a sign you can check in seconds. For the whole discipline of presenting a drawing set, the Institute runs an AutoCAD course for construction.

First split: nothing created, or created but invisible

This is the division to make before anything else, because the two halves have nothing in common.

A 20 × 10 rectangle hatched at pattern scale 100 still produces a hatch object, and its area reads exactly 200 square units. Yet the drawing shows not a single line of the pattern, because one cycle of the pattern at scale 100 is longer than the shape itself.

So a hatch that was never created and a hatch you simply cannot see are two different problems.

What you seeWhat it actually is
The command line says Valid hatch boundary not found.Nothing was created — a boundary fault
The command ends silently and the area reads blankThe hatch exists — a display or scale fault

The three-second test is to click where you just hatched. If an object selects, the hatch is there and you are in the second group.

Valid hatch boundary not found: the one message you get

An open boundary is the most common cause, and the only one AutoCAD puts into words. The message valid hatch boundary not found is the single clearest piece of evidence the program offers.

Autodesk states it plainly on the hatch FAQ page: "When defining a hatch boundary, there can't be any gaps in the geometry."

The 2027 release is uncompromising about it. A closed 2000 × 1000 polyline hatches immediately, area exactly 2,000,000. Leave the same shape open and AutoCAD refuses at the point where it accepts the boundary, long before it would draw any pattern.

What makes the fault hard to catch is that the gap is usually narrower than the lineweight, so the corner looks continuous however far you zoom in. There are three ways to find it.

Method one — let AutoCAD look. Type BOUNDARY, set Object type to Polyline, and pick inside the area. If a boundary is created, the region is closed; if the command reports that it cannot find one, there is a gap.

Method two — join the segments. Type PEDIT, choose Multiple, select everything, choose Join, and enter a small fuzz distance. Segments that nearly meet are welded into one continuous polyline.

Method three — tell AutoCAD to ignore the gap. The HPGAPTOL variable exists for exactly this. Autodesk's page on the HPGAPTOL variable defines it as "the maximum gaps between a set of objects that almost enclose an area to still be treated as a closed hatch boundary". It defaults to 0 and accepts values from 0 to 5000 drawing units.

That default of 0 means AutoCAD forgives nothing. Set it to the widest gap you are willing to overlook — for a drawing in millimetres, 2 to 5 is usually enough.

This treats the symptom, though. The gap is still in the drawing, and it will spoil the area you read later, spoil the perimeter, and break the export to any other program.

Cause 2: part of the boundary is off screen

Almost nobody expects this one, and Autodesk spells it out on the same page: "All objects being used to define the boundary of a hatch object must be visible in the current drawing view."

So if you zoom into one corner of a room and hatch, while the opposite wall sits outside the screen, AutoCAD cannot build the boundary. There is no gap at all — the program simply cannot see enough of the geometry.

One action fixes it. Type Z then E to fit the whole drawing on screen, or just zoom out far enough to show the entire area, then hatch again.

This is also why an area you hatched yesterday refuses today: the zoom level has changed.

Cause 3: the pattern scale, or hatch not visible in autocad

This group is hatch not visible in autocad rather than a creation fault. The object is already there; your eyes just cannot find it.

There are two opposite ways to get it wrong.

Scale against the shapeWhat you see
Far too largeBlank — not one line of the pattern falls inside the shape
Far too smallA solid black mass, lines closer together than the printed lineweight

Autodesk describes the remedy: "you may need to adjust the Maximum Hatch display setting or the scale assigned to the hatch object". A blank fill and a black blob are the same fault seen from the two ends, which is why hatch pattern not showing and "the hatch printed as a black rectangle" belong in one section.

The quick fix is to select the hatch, press Ctrl+1, and edit the Scale box. For a construction drawing built in millimetres and plotted at 1:100, a scale near 1 suits the ISO patterns. Choosing a scale from your plot scale is covered in our article on the HATCH command in CAD.

There is one hard ceiling as well: the HPMAXLINES variable, which the 2027 release ships at 100,000. A pattern that would need more lines than that is refused outright, with a message. When that happens, raise the scale rather than the ceiling — a hatch with that many lines makes the file heavy and the plot slow.

Cause 4: FILLMODE is off, so autocad hatch not showing anywhere

The last cause is the easiest to fix and the easiest to miss, because it hits every hatch in the drawing at once.

The FILLMODE variable decides whether AutoCAD draws the inside of a hatch or only its boundary. Autodesk describes it as follows: "Fill Mode setting controls whether the pattern of a hatch object is suppressed and only its boundary is displayed."

In a new drawing, FILLMODE defaults to 1, which is on. If somebody turns it off — or you open a drawing that arrived with it off — every hatch disappears together, including hatches that printed correctly last week.

The sign is unmistakable: all hatches vanish, not just the one you have been fighting with. That is the signature of autocad hatch not showing across an entire file. Type FILLMODE, set it to 1, then type REGEN.

Hatch command does not open dialog: a separate story

One situation gets filed under this heading wrongly. You type the command, the hatch command does not open dialog for choosing a pattern, and AutoCAD asks you questions on the command line instead.

That is not a fault. The HPDLGMODE variable decides whether the command opens a dialog or prompts on the command line. Set to 1, the pattern dialog appears as usual; set to 0, H walks you through the prompts at the command line and no dialog appears at all.

There is a second source of confusion. Typing -HATCH with a leading hyphen always runs on the command line, whatever HPDLGMODE holds. That is by design, not a defect.

To get the dialog back, set HPDLGMODE to 1 — and remember to type H, not -H.

Hatch area not showing: usually not a fault

The phrase hatch area not showing is widely misunderstood, so it is worth being precise.

Three cases on the same 2000 × 1000 shape give the same answer.

CaseArea reported
Associative hatch, boundary intact2,000,000
Boundary erased2,000,000
Non-associative hatch2,000,000

All three report in full. So the real cause is not a lost association or a deleted boundary, as many pages claim.

What actually happens is that you have more than one hatch selected. The Area field then reads *VARIES*, and the total sits on the line just below it, labelled Cumulative Area. Totalling hatch areas across a whole drawing is covered in our article on a LISP routine for hatch areas.

A one-minute diagnosis

Work through this order and you never have to guess.

  1. Click where you hatched. If an object selects, the hatch exists — jump to step 4.
  2. Read the command line. Valid hatch boundary not found. means a boundary fault — run BOUNDARY to locate the gap.
  3. Type Z then E and hatch again. If it works now, the boundary was off screen.
  4. Type FILLMODE and check that it is 1. If it is 0, set it back and type REGEN.
  5. Select the hatch, press Ctrl+1, edit Scale. Change it by a full step — 1 to 10, or down to 0.1 — and a scale fault shows itself at once.

Three things you often hear that are not true

Often heardWhat the 2027 release actually does
If nothing appears, the boundary must be openA 20×10 shape at scale 100 hatches normally; it is only invisible
Erasing the boundary loses the hatch areaIt still reports 2,000,000 after the boundary is erased
Raising HPGAPTOL repairs a gapIt only overlooks the gap while hatching; the gap remains and still corrupts areas

Frequently asked questions

What is the most common reason for hatch not working in AutoCAD?

An open boundary. The sign is the message Valid hatch boundary not found. on the command line. Run BOUNDARY and pick inside the area to let AutoCAD locate the gap for you.

The command ends without a message, so why do I still see nothing?

The hatch was created. Check that FILLMODE is 1, then check the pattern scale in the Properties palette.

What value should HPGAPTOL have?

The widest gap you are prepared to overlook. For a millimetre drawing, 2 to 5. Repairing the geometry is still better than leaving the gap there.

Why did the same area hatch yesterday but not today?

Most likely the zoom level differs. Autodesk requires every object forming the boundary to be visible in the current view.

Why did my hatch come out as a solid black mass?

The pattern scale is far too small, so the lines sit closer together than the printed lineweight. Raise the Scale value.

Why does my hatch have no area field?

Check whether several hatches are selected at once. The Area field then reads *VARIES* and the total appears on the Cumulative Area line directly below.

About the author

TS. Đỗ Quốc Hoàng — Vice Director of the Institute of Information Technology in Civil Engineering, Hanoi University of Civil Engineering, and a specialist in software development for construction