About Creating Hatches, Fills and Gradients
Hatching a drawing adds meaning and helps to differentiate the materials and areas. Some drawing applications such as construction drawings require hatch patterns which can increase the clarity and legibility of a drawing.
Along with patterns, you can fill an enclosed area or specified entities with a solid color or a color gradient. Like hatches, color fills add meaning to drawings and help differentiate materials and areas.
This topic discusses:
Adding Hatches, Fills and Gradients
You can use the following commands to add hatches and fills:
- Hatch - Fills an enclosed area of specified entities with a hatch pattern.
- -Hatch - It is the command window variant of the Hatch command.
- FillArea - Fills an enclosed area or specified entities with a solid color or a color gradient.
Selecting Hatch Patterns and Fills
You can hatch areas using various hatch patterns or fill them with a specified color.
The following hatch options are available:
- Predefined patterns: ISO and ANSI conforming patterns, as well as patterns commonly used in specific industries.
- User-defined patterns: Patterns created by users.
- Custom patterns: Patterns determined by a specified Angle and Spacing.
- Solid hatches to fill in a bounded area with the current color
Additionally, you can create a hatch with the same properties as an existing one. See Setting Behavior Options for Hatch and Fill Boundaries.
Note: Use the MirrorHatch command to specify if hatches and gradient fills are reflected or retain their pattern direction when you apply Mirror and Flip commands.
Specifying the Hatch Start Point
By default, when hatching a closed area, the hatch pattern starts at the origin of the drawing. As a result, more complex hatch patterns might not align well with the boundary or with other hatches.
If you specify another starting point, at a suitable location, the software draws the hatch starting from the defined point. For example, you can align adjacent hatch patterns to match or apply a hatch pattern over another hatch pattern by setting a suitable starting points for their hatches.
You can define the hatch start point:
- At the current drawing origin (default)
- At a specified location within or outside the boundary
- At a corner point of the boundary
Specifying Boundaries
A boundary is a set of entities that forms a closed area. Entities that are not part of the boundary are ignored.
Note: If the area is not fully closed, the hatch boundary cannot be determined.
There are several methods to define the boundary:
- Selecting a set of entities that define a closed area.
- Specifying a point within a closed area: You need at least one point inside a closed area to create a boundary entity. To create other boundary entities, specify additional internal points.
- Drawing the boundary similarly to a polyline. (only -Hatch command)
Boundaries can include closed internal regions which you can hatch or not. Internal regions are internal closed areas that are completely within the boundary area.
Additional options allow you to handle areas that are not closed and internal regions. See Setting Additional Options for Hatches and Gradient Fills.
Detecting Boundaries in Complex Drawings
Within a large drawing, you can optimize the boundary detection by specifying a set of entities to be analyzed when specifying a boundary by selecting an internal point.
To specify the set of entities you must define a so called group of entities which can include:
- Specified entities in the graphics area
- All visible entities from the current viewport
Specify the set of entities to be analyzed when specifying a boundary using an internal point. See Setting Additional Options for Hatches and Gradient Fills
Setting the Hatch Display Options
Optionally, use the following options to better display and select hatched entities: