CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
Cesky English Deutsch
 Visitors: 2127 

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    1474×  

See also:
Tip 12429:HatchOverlap - check for any overlapping hatches in a DWG
Tip 12129:Atypical use of meshing for tiling a closed shape.
Tip 10269:How to restore erased hatch boundaries? (multiple)
Tip 8396:Ray hatch patterns in AutoCAD.
Tip 8177:How to convert an existing hatch to associative?

Back   All CAD Tips All CAD tips&tricks

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   

Increase your productivity with our set of BIM add-on functions for Autodesk Revit
CADstudio Revit Tools More info

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