How to fill a shape with a solid color or pattern in AutoCAD?

How to Fill a Shape with a solid color or Pattern in AutoCAD

Short Answer

Use HATCH to fill a closed shape with a solid color or hatch pattern in AutoCAD. Start the Hatch command, click inside a fully enclosed boundary, then choose a Solid fill or pattern from the Hatch Creation tab. This is the standard professional method. Limitation: open gaps in the boundary can prevent the fill from working correctly.

What You Need to Know Before

Warning: AutoCAD hatch filling depends on a truly closed boundary or a valid internal pick point. Small gaps, overlapping objects, or locked boundary layers can make the hatch fail, appear outside the shape, or generate very slow results in dense drawings.

How to Fill a Shape with a Solid Color or Pattern in AutoCAD

  • Command: HATCH

  • Shortcut: H

  • Quick Steps:

    1. On the Ribbon > Home tab > Draw panel, click Hatch, or type H and press Enter.
    2. In the Hatch Creation tab, choose Pattern as SOLID for a solid fill or pick a standard hatch pattern such as ANSI31.
    3. Click Pick Points and click inside the closed shape, then adjust a real option like Associative ON so the hatch follows boundary edits.

Variables & Settings

  • System Variable: HPASSOC (Default: 1)

  • Expert Setting: When HPASSOC is set to 1, the hatch stays associative with its boundary, so edits to the shape update the hatch automatically. If set to 0, the hatch becomes non-associative and will not update when the boundary changes.

Why it Fails

  • Cause 1 (Geometry): The boundary is not fully closed, or tiny gaps prevent AutoCAD from detecting a valid hatch area.
  • Cause 2 (Layers/Locks): The boundary objects are on locked or problematic layers, which can interfere with editing or expected hatch behavior.
  • Cause 3 (Command/Logic): The selected hatch scale or pattern is too large, too small, or the internal pick point falls into multiple nested areas, causing incorrect or invisible results.

Quick Fix & Best Practice

  • Quick Fix: Run PEDIT or BOUNDARY to create a clean closed boundary, then apply HATCH again using Pick Points.
  • Manager’s Verdict: Use associative hatch for production drawings because it updates with design changes. Avoid overly dense patterns in large files unless plotting requirements truly need them.

FAQ

Can I fill a shape with a plain color instead of a pattern?

Yes, choose the SOLID hatch pattern in the HATCH command.

Why does AutoCAD say it cannot find a valid boundary?

Usually the shape has a gap, overlap, or an invalid internal pick area.

Can I edit the hatch after placing it?

Yes, select the hatch and change its pattern, scale, angle, or color from Properties or the Hatch Editor.

.