Black FridayUpgrade your career this Black Friday. Get up to ₹60,000 Scholarship on IIT programsUp to ₹60K Black Friday Scholarship52 seats leftOffer ends Fri, 27 Nov, 11:59 pm IST.

Black Friday Scholarship – IIT Jammu & IIT Roorkee

The best Black Friday deal isn't a gadget. It's your next career move.

Get up to ₹60,000 Black Friday Scholarship on our PG programs with IIT Jammu and iHUB DivyaSampark, IIT Roorkee. IIT certification, 12 live sessions with IIT faculty and 100% placement assistance.

Only 52 seats left. Offer ends Fri, 27 Nov, 11:59 pm IST

3,905 engineers placed since 2019 · 1,276 hiring companies

By submitting you agree to our Terms and Privacy Policy.

Your free demo class is requested

Browse courses

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.

AutoCAD Hatch Island Detection: Normal, Outer and Ignore Explained

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.

Jacketed pipe section with four concentric circles of diameter 100, 80, 60 and 48 mm hatched three ways: Normal hatches the outer and inner pipe walls (3,845 square mm), Outer hatches only the outer wall (2,827 square mm), Ignore fills the whole 100 mm disc (7,854 square mm)
One pick point between Ø100 and Ø80, three island modes. Hatch lines are the clipped segments computed by the Engineering Desk's script (ANSI31 at scale 1.5, i.e. 4.76 mm spacing, so the lines stay visible).

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.

ModeHPISLANDDETECTIONRule (levels hatched)Jacketed pipe resultUse it for
Normal01, 3, 5... (odd levels)Both pipe walls, 3,845 mm²Nested parts of the same component with the same hatch
Outer1 (initial value)Level 1 onlyOuter wall only, 2,827 mm²Most mechanical sections; hatch each part separately
Ignore2Everything inside level 1Full Ø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.

A test line across the pipe crosses 8 boundaries; depths between crossings read 1, 2, 3, 4, 3, 2, 1. Normal fills depths 1 and 3, Outer fills depth 1, Ignore fills all intervals
The nesting-depth rule behind the three modes, on a line through the centre of the jacketed pipe.

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:

  1. Pick inside the outer wall (between Ø100 and Ø80) with Outer island detection and ANSI31 at angle 0. The lines run at 45°.
  2. 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.

TaskWhereWhat it does
Recreate a lost boundaryHatch Editor tab, RecreateDraws a polyline or region around the hatch and can re-associate it
Find the boundary objectsDisplay Boundary ObjectsSelects the objects that bound an associative hatch, with grips
Reshape a non-associative hatchHatch gripsMulti-functional grips change the extents and some properties
Split one hatch into severalSeparate HatchesOne hatch object per area. One-way: it can't be combined back
Copy another hatch's settingsMatch PropertiesUse Current Origin or Use Source Hatch Origin
Keep a boundary from a pick-point hatchRetain Boundaries (creation only)Creates a polyline (HPBOUND = 1) or region around the hatch
Put the hatch behind its outlineDraw 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.

The same 160 by 100 mm plate with a 50 mm bore and four 12 mm holes hatched with ANSI31 three ways: 0.125 mm spacing from acad.pat in a millimetre drawing looks solid (1,471 lines), acadiso.pat at scale 1 gives 3.175 mm spacing (57 lines), scale 10 gives 31.75 mm spacing (5 lines)
Same plate, same pattern name, three spacings. Line counts from the Engineering Desk's script (calc.py, 22 Nov 2026).

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:

ViewportSpacing at HPSCALE 1Meets 0.7 mm?Minimum HPSCALEHPSCALE for 2 mm
1:13.175 mmYes0.220.63
1:21.587 mmYes0.441.26
1:50.635 mmNo1.103.15
1:100.318 mmNo2.216.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

Want this on your résumé?

Talk to a counsellor.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.