Hatches and gradients
A hatch fills a closed area with a pattern of lines (concrete, sand, bricks, steel...), with a solid color, or with a gradient. It is a single object: it is selected with a click inside the area or on the edge, and it moves, copies, rotates, scales, and mirrors like the others. The Hatch button is on the Draw panel of the Home tab; its small arrow gives Gradient and Boundary (BOUNDARY).

HATCH (aliases H, BH)
When it starts, the Hatch Creation panel opens next to the drawing (it is the equivalent of AutoCAD's contextual tab, as a palette that does not get in the way of clicking in the drawing) and the command line asks:
Pick internal point or [Select objects (S)/remove Boundaries (B)/Properties (P)/Origin (O)/Islands (I)/inHerit properties (H)/DRaw order (DR)/ANnotative (AN)/Undo (U)/seTtings (T)]:
- Internal point (the click): the closed area around the point, formed by any objects that intersect (lines, arcs, circles, polylines, ellipses, splines, blocks). When you move the cursor over an area, its hatch appears in the preview, as in AutoCAD. The objects inside the area (a column, a pillar) become islands. Each click adds an area; Enter creates the hatch with all of them.
- Select objects (
S): uses the outline of closed objects (closed polyline, circle, closed ellipse and spline, region), by clicking or by window.Kgoes back to internal points. - remove Boundaries (
B): click the edge of a chosen area to remove it.Agoes back to adding. - Properties (
P): the pattern name (?lists the patterns;Ssolid;Uuser defined, with the spacing and the double crosshatch;Ggradient), the scale, and the angle. - Origin (
O): the point where the pattern starts (to align bricks with a corner, for example). - Islands (
I): island detection (HPISLAND): Normal alternates from outside to inside (the island's island is hatched again), Outer hatches only up to the first islands, and Ignore goes over them. - inHerit properties (
H): choose a hatch in the drawing; pattern, scale, angle, islands, transparency, and background color carry over to the next one. - Undo (
U): removes the last area or object chosen. - seTtings (
T): shows the panel again, if it was closed.
A point outside any closed area: the notice Valid hatch boundary not found and the command continues. A point between two nearly coincident curves (closer together than the drawing's tolerance, a billionth of its size, along a stretch, like two splines drawn one over the other): the area between them has no defined boundary and the hatch is not created, with the notice Hatch not created at that point: two curves there are nearly coincident; the area would come out wrong. Move the curves apart or make one coincide with the other. The area found does not depend on the zoom: the internal point considers every visible object of the drawing (those on layers that are on), on the screen or not. The objects in view only speed up the search; an area that does not fit in the view is searched for in the neighborhood of the point, growing up to the drawing extents. The preview under the cursor shows only the areas that fit in the view (the others appear on the click). In a huge drawing (more than 60 thousand objects in view, or in the neighborhood of the point), the preview under the cursor is turned off and the search stops at that size. A point whose area contains another area already chosen is refused, with the notice That point is not added: with the hatch's even-odd fill, the inner area would be left empty (pick only the outer one, which already takes the islands, or undo the inner one with U). A point in an island of a chosen area (a room inside the house, with the area around the house already chosen) is added normally. Through automation, each refused point appears in the command result, with the notice.

The Hatch Creation panel
- Boundaries: Pick Points, Select, Remove.
- Pattern: the thumbnails of the patterns (SOLID first) and of the gradients; Import .pat… adds the patterns from an AutoCAD
.patfile. - Properties: the background color (behind the pattern lines) or the gradient colors (setting the second one to None makes a one-color gradient, which goes to the chosen tint), Centered, the transparency (0 to 90%), the angle, and the scale.
- Origin: Set Origin (asks for the point) and Origin 0,0.
- Options: Associative, Annotative, island detection, draw order (behind or in front of the boundary), and Inherit Properties.
- Close Hatch Creation: finishes the command by creating the hatch (the same as Enter).
The color of the hatch lines is the object's color (ByLayer, like the others, or the one chosen beforehand).
-HATCH (aliases -H, -BH)
Hatching from the command line only, without the panel: Specify internal point or [Properties (P)/Select objects (S)/remove Boundaries (B)/Advanced (A)/DRaw order (DR)/Origin (O)/ANnotative (AN)/Transparency (T)/Islands (I)/inHerit properties (H)/Undo (U)]. Advanced gives the island style and the associativity. Example: -h, p, ar-conc, 2, 0, click the area, Enter.
GRADIENT (alias GD)
The same thing with the gradient fill already chosen: LINEAR, CYLINDER, INVCYLINDER, SPHERICAL, INVSPHERICAL, HEMISPHERICAL, INVHEMISPHERICAL, CURVED, and INVCURVED (AutoCAD's names), between two colors or from one color to the tint, with an angle and centered or offset.
Patterns
BadBit CAD's library (its own file in AutoCAD's .pat format, written from scratch) has the commonly used patterns: SOLID, LINE, NET, NET3, ANSI31 to ANSI38, AR-B816, AR-CONC, AR-SAND, BRICK, CLAY, CROSS, DASH, DOTS, EARTH, GRASS, GRAVEL, HONEY, INSUL, SQUARE, and ZIGZAG. The measurements are in meters, designed for floor plans (ANSI31 has lines 12.5 cm apart at scale 1): the scale adjusts it to the drawing.
Patterns imported from a .pat (from AutoCAD or another source) are added to the list. The pattern definition goes inside the hatch in the .bbd file: the drawing opens the same way on another machine, without the .pat. A scale too small for the area (more than a million lines, AutoCAD's HPMAXLINES) is rejected with the notice The pattern is too dense for this area.
Associative hatch
With Associative on (the default, HPASSOC), the hatch follows the boundary: stretching a wall, moving a pillar, or scaling the circle rebuilds the hatch in the same undo step. If the boundary stops being closed (or one of its objects is erased), the hatch stays where it is and stops being associative, as in AutoCAD. Copying the boundary together with the hatch leaves the copy associated with the copies.
HATCHEDIT (alias HE, double-click)
Double-clicking a hatch opens its editing, with the same panel: each change applies to the chosen hatches. From the command line: [DIsassociate (DI)/Style (S)/Properties (P)/DRaw order (DR)/Origin (O)/ANnotative (AN)/Transparency (T)]; each option changes only that. The Properties palette (Ctrl+1) also shows and changes the pattern, the scale, the angle, the transparency, and the islands, with the painted area. MATCHPROP carries the properties of a hatch to others (the Hatch box in the Settings).
Selection, grips, and editing
- A click inside the painted area or on the edge selects the hatch (a line on top of it still wins). A crossing window picks the hatch it touches.
- Grips: the middle one moves the hatch; a non-associative hatch also shows the vertices of the boundaries, which can be dragged (and the hatch is rebuilt).
- STRETCH stretches the boundaries the window catches. EXPLODE turns the hatch into the pattern lines (solid and gradient hatches, into the boundaries).
- Snaps do not stick to hatches (AutoCAD's OSNAPHATCH 0).
Draw order
The hatch stays beneath the lines (HPDRAWORDER Behind boundary): walls and dimensions appear on top of it. DRAWORDER (alias DR), with the options Above objects (A), Under objects (U), Front (F), and Back (B), brings the chosen objects in front of everything, behind everything, or right above/below the reference objects (asked for after A and U); HATCHTOBACK sends all hatches to the back. Draw order applies to any object (hatches, images, lines), goes into DXF and DWG, and comes back from them (see the images chapter).
Fill on the screen
The fill comes out the same on the GPU and on the CPU-only path (a computer without a graphics card), without slowing down the drawing: thousands of hatches go into the stored frame, and only what changes is redrawn. Wide polylines, the DONUT's donut, and the filled arrowheads of dimensions also come out filled.
