CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
Over 1.096.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new precise Engineering calculator and the updated Barcode generator. New AutoCAD 2026 commands and variables.

CAD tip CAD tip # 12287:

Question

CAD 
 %  platform  category 
A
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:

flooding

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:

    ^C^C_-HATCH;_Adv;_Bound;_New;_ALL;;;

ACADACLTCivilMapADT
100% *CAD
25.6.2019    35881×  

See also:
Tip 14207:Hatch on path in AutoCAD 2025+
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


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
  



Featuring:
Automatic nesting of 2D parts on rectangular sheets in AutoCAD
AutoNEST 2008 More info


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