AutoCAD Hatch Island Detection: Normal, Outer and Ignore Explained
How AutoCAD decides what to hatch: Normal, Outer and Ignore island detection worked on a jacketed pipe and a plate with computed areas, plus gap tolerance, hatch editing, and the ANSI31 scale that keeps sections readable.

Island detection is how AutoCAD's HATCH command decides which closed shapes inside your picked area stay unhatched. An "island" is any enclosed area inside the area being hatched, such as a hole in a plate. AutoCAD has three modes. Normal hatches alternate levels (area, skip the island, hatch the island inside it). Outer hatches only the outermost area. Ignore hatches straight through every island. The HPISLANDDETECTION system variable sets the mode: 0 Normal, 1 Outer, 2 Ignore. Each session starts at 1, Outer.
This guide works one mechanical example through all three modes, with the hatched areas computed. It then covers the hatch problems that waste drafting time: boundaries that "are not closed", hatches that come out solid black or almost empty, and editing a hatch after the geometry changes. Skill-Lync's Engineering Desk drew every figure with the same island logic and checked every number with a script. Commands and default values are from Autodesk's AutoCAD 2026 and 2027 help.
Key takeaways
- Three modes, one variable: HPISLANDDETECTION = 0 Normal, 1 Outer, 2 Ignore. It is not saved, so every new AutoCAD session starts at 1 (Outer). HPISLANDDETECTIONMODE = 0 switches island detection off.
- Worked example: a jacketed pipe section (Ø100/Ø80 outer pipe, Ø60/Ø48 inner pipe), picked between Ø100 and Ø80. Normal hatches 3,845 mm², Outer 2,827 mm² and Ignore 7,854 mm², which is 104% more than Normal.
- When the modes agree: with only one level of islands (a plate with holes), Normal and Outer give the same hatch, here 13,584 mm² on a 160 × 100 mm plate.
- Gaps: HPGAPTOL (0 to 5,000 drawing units, initial 0) lets AutoCAD treat gaps up to that size as closed. Red circles mark the open endpoints.
- Scale: ANSI31 lines are 3.175 mm apart in acadiso.pat but 0.125 units in acad.pat. The imperial file in a millimetre drawing gives 1,471 lines on the plate instead of 57. SP 46:2003 asks for at least 0.7 mm between parallel lines on the drawing.
What is island detection in AutoCAD?
When you hatch by picking a point, AutoCAD finds the nearest closed boundary around that point. It then looks for closed objects inside it: holes, bosses, text, a second part. These are islands. Island detection decides what happens to each one. Hatch it, leave it empty, or ignore it and hatch straight through.
Islands are counted by nesting level. The outer boundary encloses level 1, an island inside it is level 2, an island inside that island is level 3, and so on. The three modes are three rules for which levels get hatched.
What is the difference between Normal, Outer and Ignore island detection?
Normal hatches the picked area, skips the first island, hatches the island inside that, and alternates inward. Outer hatches only the picked area and leaves every island inside untouched. Ignore hatches everything within the outer boundary as if no islands existed. Autodesk's help describes them that way, and the table shows what each does to the jacketed pipe.
| Mode | HPISLANDDETECTION | Rule (levels hatched) | Jacketed pipe result | Use it for |
|---|---|---|---|---|
| Normal | 0 | 1, 3, 5... (odd levels) | Both pipe walls, 3,845 mm² | Nested parts of the same component with the same hatch |
| Outer | 1 (initial value) | Level 1 only | Outer wall only, 2,827 mm² | Most mechanical sections; hatch each part separately |
| Ignore | 2 | Everything inside level 1 | Full Ø100 disc, 7,854 mm² | Solid backgrounds and fills behind other objects |
For the pipe, Ignore is plainly wrong: it fills the jacket space and the bore. Normal and Outer can both be right, depending on whether you want the inner pipe hatched in the same operation.
How does AutoCAD decide what to hatch?
Walk a straight line across the pipe and count the boundaries you cross. Every crossing moves you one level deeper, or back out. Normal keeps the stretches at odd depth, Outer keeps only depth 1, and Ignore keeps every stretch inside the outer boundary. Our script uses exactly this rule to clip each hatch line, so the figures show what the rule produces.
The areas follow directly. Normal hatches the two pipe walls:
Outer keeps only the first wall (2,827.4 mm²). Ignore fills the whole disc, mm². The script checked each value three ways: closed form, integrating the clipped hatch lines, and a 4-million-point Monte Carlo estimate. All three agree to within 0.4%.
You can check a hatch the same way in AutoCAD. Select it and read its Area in the Properties palette. If a "plate with holes" reports the full rectangle area, the holes were not detected as islands.
Which island detection mode should mechanical engineers use?
Leave the default, Outer, for most section views, and hatch each separate part with its own hatch object. This matches the Indian drawing standard SP 46:2003 (Section 10, based on IS 10714). Separate areas of the same component are hatched identically, and adjacent components are hatched "with different directions or spacings". A single Normal hatch gives every nested part the same pattern, which is wrong when they are different parts.
For the jacketed pipe, that means two hatches:
- Pick inside the outer wall (between Ø100 and Ø80) with Outer island detection and ANSI31 at angle 0. The lines run at 45°.
- Pick inside the inner wall (between Ø60 and Ø48) with the same pattern at angle 90. ANSI31's 45° lines then run at 135°, so the two pipes read as separate components.
When there is only one level of islands, the choice does not matter. Take a 160 × 100 mm plate with a Ø50 bore and four Ø12 holes. Normal and Outer both hatch the plate and skip the holes, giving mm². Only Ignore differs: it fills the holes and reports 16,000 mm².
How do I set the island detection mode?
Start HATCH, then open the Island Detection option on the Hatch Creation contextual tab (Options panel) and choose Normal, Outer or Ignore. At the command line, type HPISLANDDETECTION and enter 0, 1 or 2. Because the variable is not saved, it goes back to 1 (Outer) in every new session.
HPISLANDDETECTIONMODE controls whether islands are detected at all. Its initial value, 1, is what Autodesk recommends. Setting 0 turns detection off, and the command-line version of the command (-HATCH) then asks for a ray-casting method to find the boundary instead.
Why does AutoCAD say the hatch boundary is not closed?
A pick-point hatch needs a fully closed boundary. A 0.2 mm gap where two lines nearly meet is enough to fail. AutoCAD then marks the unconnected endpoints with red circles; these are temporary, and REDRAW or REGEN clears them. You have two fixes:
- Close the geometry (better). Extend or join the open ends, or redraw the outline as one closed polyline. Our guides to EXTEND, LENGTHEN and JOIN and the POLYLINE command cover this.
- Raise the gap tolerance. Set Gap Tolerance in the Options panel, or the HPGAPTOL variable, to a value from 0 to 5,000 drawing units. Any gap equal to or smaller than the value is treated as closed. With a 0.4 mm gap, HPGAPTOL = 0.5 lets the hatch through. Keep it small: a large tolerance can bridge gaps you meant to leave open.
How do I edit a hatch after the drawing changes?
Hatches are associative by default (HPASSOC = 1). When you stretch, move or edit the boundary objects, the hatch follows. Most "the hatch won't update" problems come from the boundary rather than the hatch. Autodesk's help notes that if an edit leaves the boundary open, the hatch loses associativity and stays as it was.
| Task | Where | What it does |
|---|---|---|
| Recreate a lost boundary | Hatch Editor tab, Recreate | Draws a polyline or region around the hatch and can re-associate it |
| Find the boundary objects | Display Boundary Objects | Selects the objects that bound an associative hatch, with grips |
| Reshape a non-associative hatch | Hatch grips | Multi-functional grips change the extents and some properties |
| Split one hatch into several | Separate Hatches | One hatch object per area. One-way: it can't be combined back |
| Copy another hatch's settings | Match Properties | Use Current Origin or Use Source Hatch Origin |
| Keep a boundary from a pick-point hatch | Retain Boundaries (creation only) | Creates a polyline (HPBOUND = 1) or region around the hatch |
| Put the hatch behind its outline | Draw Order (HPDRAWORDER) | Initial value 3, Send Behind Boundary, so outlines stay visible |
For drastic changes, TRIM can cut a hatch back and EXPLODE breaks it into plain lines. Exploding loses the hatch's area and editability, so use it last. Other settings worth knowing: HPLAYER puts new hatches on a chosen layer whatever the current layer, HPTRANSPARENCY sets their transparency, and HPSEPARATE = 1 makes separate hatches the default.
Why does my hatch look solid black, or almost empty?
The pattern spacing doesn't suit the drawing units or the plot scale. ANSI31, the 45° line pattern described as "ANSI Iron, Brick, Stone masonry", is defined as "45, 0,0, 0,.125" in the imperial file acad.pat. That means 45° lines 0.125 drawing units apart, an eighth of an inch. The metric file acadiso.pat spaces the same lines 3.175 mm apart. The MEASUREMENT variable (0 imperial, 1 metric, saved in each drawing) decides which file a drawing uses. A millimetre drawing started from an imperial template can therefore hatch at 0.125 mm.
The number of 45° lines across a part is its width measured across the lines divided by the spacing. For the 160 × 100 mm plate:
At mm that is 57 lines. At mm it is 1,471 lines, 25.4 times denser, and the section prints as a solid block. At HPSCALE 10 the spacing is 31.75 mm and only 5 lines cross the plate, too few to read as a section.
A related limit is HPMAXLINES, which caps the hatch lines AutoCAD generates in one operation. Its initial value is 100,000 (valid range 100 to 10,000,000). The plate would need HPSCALE below about 0.0006 to reach it, so hitting this cap usually means a units or scale mistake, not a big drawing. Fix the scale rather than raising the cap.
What hatch scale should I use for a plotted drawing?
Choose the scale from the spacing you want on paper. If the part is drawn full size in millimetres and shown in a viewport at 1:k, the spacing on the plot is:
SP 46:2003 (clause 6.5.1) asks for at least 0.7 mm between parallel lines, and clause 10.2.1.4 asks for spacing in proportion to the size of the hatched area. Here is what ANSI31 gives at common viewport scales:
| Viewport | Spacing at HPSCALE 1 | Meets 0.7 mm? | Minimum HPSCALE | HPSCALE for 2 mm |
|---|---|---|---|---|
| 1:1 | 3.175 mm | Yes | 0.22 | 0.63 |
| 1:2 | 1.587 mm | Yes | 0.44 | 1.26 |
| 1:5 | 0.635 mm | No | 1.10 | 3.15 |
| 1:10 | 0.318 mm | No | 2.21 | 6.30 |
So a housing drawn full size and shown at 1:5 with HPSCALE 1 plots lines only 0.635 mm apart, below the 0.7 mm minimum. Raise HPSCALE to at least 1.10, or about 3.15 for a comfortable 2 mm. If one hatch must appear in viewports at several scales, make it annotative (the Annotative option, HPANNOTATIVE): AutoCAD then sizes the pattern for each annotation scale.
What changed in hatching in recent AutoCAD versions?
AutoCAD 2025 added a Draw option to HATCH, so you can create a hatch "without the need for pre-existing boundary geometry". You draw a filled shape, or hatch along a path, using polyline, circle or rectangle options. AutoCAD 2027's release notes are dated 25 March 2026. We found no hatch or island-detection changes in the 2026 or 2027 "What's New" lists, so everything above applies to both. Note the default pattern name too. Autodesk lists the initial HPNAME as ANSI31 in imperial drawings but ANGLE in metric ones, so check the pattern before your first section hatch.
Practise it
Draw the jacketed pipe and the plate above, then hatch them all three ways. Confirm the areas in the Properties palette match 3,845, 2,827 and 7,854 mm², and 13,584 mm² for the plate. Then plot the plate in a 1:5 viewport at HPSCALE 1 and 3.15 and compare. For orthographic and sectional views in general, see our guide to types of views in engineering drawing.
Skill-Lync's free AutoCAD Essentials for Mechanical Engineers lessons walk through 2D drafting from the start. For the complete program, see the AutoCAD Essentials for Mechanical Engineers course. If you're weighing a longer design program, talk to a Skill-Lync counsellor.
Frequently asked questions
What is an island in AutoCAD hatching?
An island is a closed area inside the area you are hatching, such as a hole in a plate, a boss, text or a second part drawn inside the first. When you pick a point to hatch, AutoCAD detects these islands and, depending on the island detection mode, leaves them empty, hatches them, or ignores them and hatches straight through.
What is the default island detection mode in AutoCAD?
Outer. The HPISLANDDETECTION system variable has an initial value of 1, which is Outer: only the area outside the islands is hatched. The variable is not saved with the drawing, so every new AutoCAD session starts at Outer again, even if you switched to Normal or Ignore earlier. Autodesk documents this in its AutoCAD 2026 and 2027 help.
Why is my hatch filling the holes in my part?
Island detection is set to Ignore, or island detection is off (HPISLANDDETECTIONMODE = 0). Another cause is that the holes are not closed shapes, so AutoCAD can't see them as islands. Set the mode to Outer or Normal, make sure each hole is a closed circle or polyline, then re-hatch. Check the result's Area in Properties.
How do I fix "boundary not closed" when hatching?
Look for the red circles AutoCAD draws at open endpoints, then close the gap with EXTEND, JOIN or a closed polyline. If the gaps are tiny drafting errors, set HPGAPTOL (Gap Tolerance) slightly larger than the gap, from 0 to 5,000 drawing units. Gaps equal to or smaller than the tolerance are then treated as closed.
Why does my ANSI31 hatch look solid?
The spacing is too fine for the drawing. In a millimetre drawing that uses the imperial acad.pat, ANSI31 lines are 0.125 mm apart, 25.4 times denser than the 3.175 mm of acadiso.pat. A viewport scale such as 1:5 also shrinks the plotted spacing. Set MEASUREMENT to 1 for metric, or raise HPSCALE.
Sources and further reading
- HPISLANDDETECTION (system variable), Autodesk AutoCAD 2027 Help. Accessed 22 Nov 2026.
- HPISLANDDETECTIONMODE (system variable), Autodesk AutoCAD 2026 Help. Accessed 22 Nov 2026.
- Hatch Creation tab (island detection, gap tolerance, associativity, draw order, recreate), Autodesk AutoCAD 2027 Help. Accessed 22 Nov 2026.
- -HATCH (command line): red circles at gaps, ray casting, Autodesk AutoCAD 2027 Help. Accessed 22 Nov 2026.
- HPGAPTOL (system variable), Autodesk AutoCAD 2027 Help. Accessed 22 Nov 2026.
- About editing hatches and fills (associativity, multi-functional grips), Autodesk AutoCAD 2027 Help. Accessed 22 Nov 2026.
- HPMAXLINES (system variable), Autodesk AutoCAD 2027 Help. Accessed 22 Nov 2026.
- MEASUREMENT (system variable), Autodesk AutoCAD 2027 Help. Accessed 22 Nov 2026.
- Overview of hatch pattern definitions (ANSI31 in acad.pat), Autodesk AutoCAD 2027 Customization Guide. Accessed 22 Nov 2026.
- Did you know: hatch tips (Separate Hatches, hatch system variables, HPNAME defaults), Autodesk AutoCAD 2027 Help. Accessed 22 Nov 2026.
- What's New in AutoCAD 2025: hatch improvements, Autodesk. Accessed 22 Nov 2026.
- AutoCAD 2027 release notes (25 Mar 2026), Autodesk. Accessed 22 Nov 2026.
- SP 46:2003 Engineering Drawing Practice for Schools and Colleges (clauses 6.5.1, 10.2.1), Bureau of Indian Standards (public copy). Accessed 22 Nov 2026.
- ISO 128-3:2022 Technical product documentation, general principles of representation: views, sections and cuts, ISO. Accessed 22 Nov 2026.


