Can I fill an irregular shape with a hatch pattern in AutoCAD?

Short Answer

Yes — you can fill an irregular shape with a hatch pattern in AutoCAD by using the HATCH command and selecting an internal point or closed boundary. This is the most common professional method for rooms, site areas, and custom outlines. Limitation: the boundary must be fully closed or the hatch may fail.

What You Need to Know Before

Warning: AutoCAD often fails to hatch irregular shapes when tiny gaps, overlapping segments, or non-coplanar objects exist in the boundary. A shape may look closed on screen but still be open enough to break boundary detection.

How to Fill an Irregular Shape with a Hatch Pattern in AutoCAD

  • Command: HATCH

  • Shortcut: H

  • Quick Steps:

    1. On the Ribbon > Home tab > Draw panel > Hatch, start HATCH.
    2. In the Hatch Creation tab, choose your pattern, then use Pick Points and click inside the irregular closed shape.
    3. Set a real option like Associative = On, then press Enter to place the hatch.

Variables & Settings

  • System Variable: HPGAPTOL (Default: 0)

  • Expert Setting: This controls the maximum gap AutoCAD will ignore when detecting a hatch boundary. Increasing it slightly can help hatch nearly closed irregular shapes, but setting it too high may let the hatch leak into nearby areas.

Why it Fails

  • Cause 1 (Geometry): The irregular boundary has small gaps, self-intersections, duplicate lines, or objects that are not truly joined into a closed loop.
  • Cause 2 (layers/Locks): Boundary objects are on locked layers, inside an unloaded xref, or partially hidden, preventing proper editing or boundary verification.
  • Cause 3 (Command/Logic): You used Pick Points in an area where AutoCAD finds multiple possible boundaries, or the hatch scale is so large or dense that the result appears incorrect.

Quick Fix & Best Practice

  • Quick Fix: Use PEDIT to join the boundary into a closed polyline, then run HATCH again with Associative turned on.
  • Manager’s Verdict: For production drawings, hatch from a clean closed polyline whenever possible. Avoid hatching messy linework directly unless you have verified the boundary first.

FAQ

Can AutoCAD hatch an area that is not a rectangle?
Yes, any closed irregular boundary can be hatched.

Should I use Pick Points or Select Objects for hatch?
Pick Points is usually the fastest and most common method.

Can I edit the hatch later if the boundary changes?
Yes, if the hatch is associative, it updates with boundary edits.

.