Save 15% On All Single Licences! Loading... GET OFFER

How to Create Hatches and Gradient Fills in BricsCAD

Quick answer: HATCH fills an enclosed area with a repeating pattern; GRADIENT fills it with a smooth colour transition in one of nine patterns, using one or two colours. Both work on a single closed entity or an area enclosed by several selected entities. Two more dedicated pages exist for editing hatches afterward and for the full system variable reference, this page covers creating them.

Performance Considerations

Hatching can be memory intensive and slow to draw or display, depending on the pattern. It’s worth adding hatching as one of the last steps when building a drawing, or putting hatches on a separate layer you can freeze while you keep working. Alternatively, use FILLMODE to switch off the display of hatches, gradients, and filled entities generally.

Two limits matter here:

Finding the Hatch and Gradient Tools

The Draw menu, the Draw toolbar, and the Draw ribbon panel for both. The Draw tab of the No Selection Quad has an entry for Hatch only, not Gradient.

General Procedure

  1. Launch HATCH or GRADIENT. The Hatch and Gradient dialog opens.
  2. Click the Hatch tab to create a hatch, or the Gradient tab to create a gradient fill, and define its properties.
  3. Choose the boundary.
  4. Set your options.
  5. Click OK. The result is created on the layer set by HPLAYER, defaulting to the current layer.

Defining Hatch Properties

  1. Select the Hatch tab.
  2. Optionally click Inherit properties, the dialog closes temporarily while you select an existing hatch entity to copy its properties from, then reopens with those properties applied.
  3. Choose a Pattern Type:
    • User Defined: uses the pattern set directly in this dialog via Angle, Spacing, and Cross Hatch.
    • Predefined: uses patterns from iso.pat (metric, MEASUREMENT on) or default.pat (imperial, MEASUREMENT off), the same file-splitting logic used for linetype files.
    • Custom: uses .pat files, one pattern per file, found by searching the folders set in SRCHPATH.
  4. For Predefined or Custom patterns: double-click the Swatch field, choose a pattern from the palette and confirm, then set a scale and angle.
  5. For User Defined patterns: specify the pattern spacing in drawing units, and optionally enable Cross Hatch.
  6. Set the Hatch Origin: either Use current origin (whatever HPORIGIN currently holds), or Specified origin, where you click Pick new origin and choose a point, which then updates HPORIGIN.
  7. Set the hatch pattern’s colour.
  8. Set its background colour.

Defining Gradient Fill Properties

  1. Select the Gradient tab.
  2. For a single-colour gradient, choose One color. Click the colour tile to pick a colour, then use the slider to control the transition, far right for a colour-to-white gradient, far left for colour-to-black.
  3. For a two-colour gradient, choose Two color. Click each tile to pick its colour, then choose one of nine patterns: linear, cylindrical, inverted cylindrical, spherical, hemispherical, curved, inverted spherical, inverted hemispherical, or inverted curved.
  4. Optionally tick Centered for a symmetrical fill; leave it unticked to build the gradient from the left of the boundary instead.
  5. Set the Angle, relative to the current UCS.

Defining the Boundary

  1. Choose a Boundaries option.
  2. Choose an Island detection option, for enclosed areas inside the hatch boundary.
  3. Set the Boundary tolerance, the largest gap size still treated as a closed boundary. At 0, BricsCAD scales the tolerance to your current view size, zoom out to increase it. Saved via HPGAPTOL.
  4. Optionally click Select to choose a Boundary set; the dialog closes temporarily. If a selection was already active when you launched HATCH or GRADIENT, that selection becomes the Boundary Set automatically.
  5. Build the boundary itself using one of three buttons: Pick Points (click inside each area you want hatched, right-click or Enter to stop), Select Boundary Entities (select the entities directly, right-click or Enter to stop), or Remove Boundary Entities (select entities to remove from the current boundary selection, right-click or Enter to stop). Each closes the dialog temporarily and reopens it once you finish.

Setting Additional Options

Frequently Asked Questions

Why is my hatch taking a long time to draw or display? Some patterns are memory intensive. Add hatching near the end of your workflow, keep it on its own layer you can freeze while working, or use FILLMODE to hide filled entities temporarily.

Is the Gradient tool available from the Quad, like Hatch is? No, only Hatch has a Quad entry. Gradient is available from the Draw menu, Draw toolbar, and Draw ribbon panel instead.

Does the Draw order setting for a hatch stay the same after I close and reopen the drawing? No, it resets to Send behind boundary every time the drawing is closed and reopened.

What’s the difference between Predefined and Custom pattern types? Predefined uses BricsCAD’s own iso.pat or default.pat file depending on MEASUREMENT. Custom uses any .pat file found in the folders set by SRCHPATH, one pattern per file.

Powered by Full Pelt Ltd