CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
CZ | EN | DE
Login or
  Visitors: 1141

CAD tip CAD tip # 12287:

Question CAD 
 %  platform  category 
Q - question

AutoCAD hatch flood-fill does not honor all boundaries.

A - answer When hatching large, especially long objects using the flood-fill method - i.e. with the option "Specify internal point:" - you may encounter the problem that some boundary lines are not honored. See the pink part of the flood solid hatch:


The reason is that this AutoCAD function works by default only with those objects, which are at least partially visible on screen. So for the "flood" fill/hatch the result depends on the current zoom level. But with a large zoom-out level it may be difficult to properly hit the small "single-pixel" area with an internal point.

There are multiple solutions:

  • Instead of the internal point method, perform the hatching using the boundary (object) selection method.
  • Split the long object into shorter ones using auxiliary "partition" lines and hatch them one by one.
  • Instead of using objects "on screen", force your AutoCAD to work with a specified set of potential hatch boundaries. You can do it this way: in the HATCH command, choose the fill type and then use the option "seTtings". Expand the dialog with the bottom right arrow, click on "Boundary set > New" and use window selection (or step by step selections, or just ALL - but watch any switched-off layers) to select objects along the hatched area - e.g. a buffer-zone. Then zoom in closer as necessary and click the point inside the zone.

    You can predefine this procedure to a LISP function or a menu macro - and then assign it e.g. to a ribbon icon or to a keyboard shortcut.

    The LISP function (a new command "FHATCH") can e.g. look like this:

    (defun C:FHATCH ()
     (setvar "HPNAME" "SOLID")
     (command "_-HATCH" "_Adv" "_Bound" "_New" "_ALL" "" "")

    The menu macro (a new command in CUI, also for LT) can look like e.g. this:


100% *  CAD 
25.6.2019    33910×  

See also:
Tip 13590:How to set the hatch background color?
Tip 13150:How to hatch selected objects including overlays and islands?
Tip 12966:TrimArr - trim a dynamic array to a boundary curve.
Tip 12766:Lines with a single grip, incorrect osnaps, intersections, offsets, hatches - CheckLarge
Tip 12429:HatchOverlap - check for any overlapping hatches in a DWG

Back   All CAD Tips

Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   

Use Google Earth images in your AutoCAD projects with the Plex.Earth Tools More info

Please use these tips at your own risk.
Arkance Systems is not responsible for possible problems that may occur as a result of using any of these tips.