Tutorials CadCraft help Walkthroughs

Hatch and fill areas

Fill an area with a solid color or a standard pattern by clicking inside it or by picking closed shapes, set the pattern's scale and angle, and change a hatch afterwards.

Written for CadCraft 0.11. The same help is inside the app: press F1.

What you will make

A wall section filled with the ANSI31 pattern, a column in it left empty, and a solid fill in the column.

Hatch by clicking inside an area

  1. Draw a rectangle (REC, 0,0, @2000,1200) and a circle inside it (C, 1000,600, 300). Click Extents.
  2. Click Hatch in the Draw group, or type H and press ReturnEnter. The history says which pattern is current, for example Current hatch: ANSI31, scale 1, angle 0°.
  3. Type P and press ReturnEnter, type ANSI31 and press ReturnEnter.
  4. Type SC and press ReturnEnter, type 20 and press ReturnEnter. Pattern sizes are on paper, so a drawing plotted at 1:20 wants scale 20.
  5. At Pick internal point, click inside the rectangle, outside the circle. The hatch shows as a preview.
  6. Press ReturnEnter. The rectangle is hatched; the circle inside stays empty, because it is an island.

Click inside several areas before pressing ReturnEnter to make them one hatch. U takes back the last area.

Step 1: the Hatch button in the Draw group of the ribbon, with a rectangle and a circle inside it drawn on the model
Step 1: the Hatch button in the Draw group of the ribbon, with a rectangle and a circle inside it drawn on the model
Step 2: the command history after the pattern was set to ANSI31 and the scale to 20, with the command line asking Pick internal point
Step 2: the command history after the pattern was set to ANSI31 and the scale to 20, with the command line asking Pick internal point
Step 3: the rectangle filled with diagonal ANSI31 lines while the circle inside it stays empty
Step 3: the rectangle filled with diagonal ANSI31 lines while the circle inside it stays empty

A solid fill

  1. Type H and press ReturnEnter.
  2. Type P, press ReturnEnter, type SOLID and press ReturnEnter.
  3. Click inside the circle, then press ReturnEnter.
Step 4: the circle filled with a solid dark fill, inside the rectangle that keeps its diagonal pattern
Step 4: the circle filled with a solid dark fill, inside the rectangle that keeps its diagonal pattern

Hatch closed shapes you pick

Instead of clicking inside, type S (Select objects) at Pick internal point and pick closed polylines, circles or closed ellipses, then press ReturnEnter. Shapes inside others are left empty in turn (the outer one hatched, the next one in empty, and so on).

Patterns

Type ? at the pattern question for the list. The standard ones are ANSI31 to ANSI38, LINE, NET, NET3, DASH, SQUARE, BRICK, DOTS and EARTH, and SOLID. In a drawing in inches (or with feet and inches as its length format) the inch sizes of the patterns are used, as in AutoCAD; otherwise the millimeter ones.

Angle (A) turns the whole pattern: ANSI31 at 90° slopes the other way.

Pattern files. Type F (Pattern file) at Pick internal point and choose a .pat file. The patterns in it join the list; with more than one you are asked which to use. A file with no pattern CadCraft can read says so, and any pattern it skipped is counted. Sizes in a .pat file have no unit of their own, so they are read in the drawing's units. Only files written to the usual .pat format have been tried; none made by another program.

Change a hatch

Select it (click one of its lines). In Properties: Pattern, Pattern scale and Pattern angle. Hatches from opened drawings show their pattern when it is one of the standard ones; others show as a light tone of their color.

Common mistakes

  • "No closed boundary round that point." There is a gap in the outline, or part of it is off screen: CadCraft looks only at what is on screen. Close the gap (zoom in on the corners), or zoom out.
  • "The pattern is too dense to draw at this scale." The lines would be closer than the drawing can show. Use a larger scale: try the plot scale (20 for 1:20).
  • The pattern looks huge or tiny. The scale is in drawing units per pattern unit; see step 4 above.
  • The hatch stopped following its outline. A hatch made with HATCH stays with the objects it was made from: move, turn or scale the outline and the hatch goes with it; reshape it with a grip and the hatch is worked out again. The link ends when the outline no longer closes, when you reshape the hatch itself by hand, or when you trim it, and the command line says so. Nothing is lost: hatch the area again to link it anew.

A hatch that stays with its boundary

A hatch you make with HATCH remembers what bounds it. Move, turn or scale the boundary and the hatch and its pattern go with it. Drag a grip to reshape the boundary and the hatch is worked out again. Move the hatch on its own and its boundary comes too, like a filled shape in a drawing program.

The link ends, and the command line says so, if the boundary no longer closes or you reshape the hatch by hand. The hatch itself stays. Type AS while hatching to make hatches that stand alone. Copy a hatch with its boundary and the copy has its own link.

HATCHEDIT (HE) changes the pattern, scale, angle and origin of a hatch, and links it to a boundary or ends the link. The link is saved in DWG and DXF 2000 files. A DXF R12 file has no hatch object, and links made in other programs aren't read: use HATCHEDIT and Link for those.

A hatch that has no boundary any more (the boundary was erased, or the file came without it) can give it back: HATCHGENERATEBOUNDARY (HGB) draws a closed polyline round each loop of the hatch and, if you answer Yes, links the hatch to them.

A gradient fill

GRADIENT (GD) fills an area with a gradient instead of a pattern: the same picks as HATCH, after it asks the type (linear, cylindrical, spherical, hemispherical, curved, and each of those inverted), one color with a tint or two colors, the angle, and centered or not. In HATCH the option G does the same. HATCHEDIT G, or Properties under Gradient, changes a gradient or turns any hatch into one.

A gradient shows on screen and in plots. Save as DWG 2004 or later and other programs get a real gradient hatch. DXF 2000 and DWG 2000 have no gradient: there CadCraft keeps it for itself and other programs see a solid fill in the first color.

Trim a hatch

TRIM cuts a hatch like any other object. Click the hatch on the side of the cutting edge you want gone: the edges split the hatched area and that piece is removed. In Quick mode every object is a cutting edge; choose the edges first (option T) when there are many. A trimmed hatch is no longer linked to its boundary, because it no longer fills it.