# Overview of Hatch Patterns and Fills [GstarCAD 2012](../../Index.md) → [User Guide](../%28User%20Guide%29.md) → [Hatches、Fills](%28Hatches%E3%80%81Fills%29.md) You can hatch an area using a predefined hatch pattern, define a simple line pattern using the current linetype, or create more complex hatch patterns. One type of pattern is called solid, which fills an area with a solid color. You can also create a gradient fill, which uses a transition between shades of one color or between two colors. Gradient fills can be used to enhance presentation drawings, giving the appearance of light reflecting on an object. Add Hatch Patterns and Solid Fills You can use several methods to add hatch patterns to your drawing. - The HATCH command provides the most options. - You can drag hatches from a tool palette. Use tool palettes when you need additional speed and convenience. With the Tool Palettes window open, you can right-click a pattern tool to access the Tool Properties dialog box from the shortcut menu. This dialog box contains several hatch pattern options that are also available through HATCH. For example, you can specify the scale and spacing for the hatch pattern. - You can also use DesignCenter. Create Associative Hatches An *associative* hatch is updated when you change the boundary. Hatched areas created with HATCH are associative by default. This setting is stored in the system variable HPASSOC. Hatches created by dragging hatch patterns from tool palettes or DesignCenter use the setting in HPASSOC. You can remove hatch associativity at any time or use HATCH to create a nonassociative hatch. When the HPGAPTOL system variable is set to 0 (the default), associativity is automatically removed if editing creates an open boundary. You can use HATCH to create nonassociative hatches, which are independent of their boundaries. Choose a Hatch Pattern The program supplies a solid fill and more than 50 industry-standard hatch patterns that you can use to differentiate the components of objects or represent object materials. The program also comes with 14 hatch patterns that conform to the ISO (International Standards Organization) standards. When you select an ISO pattern, you can specify a pen width, which determines the lineweight in the pattern. On the Hatch of the Hatch and Gradient dialog box, the Type and Pattern area displays the names of all the hatch patterns defined in the *acad.pat* text file. You can add new hatch patterns to the dialog box by adding their definitions to the *acad.pat* file. Limit Hatch Pattern Density If you create a very dense hatch, the program may reject the hatch and display a message indicating that the hatch scale is too small or its dash length too short. You can change the maximum number of hatch lines by setting the HPMAXLINES system variable*.* You can set values between 100 and 10000000 (ten million). The default value for HPMAXLINES is 1000000\. Edit Hatch Boundaries Because there are so many combinations of objects that can be hatched, editing hatched geometry can produce unexpected results. If you create a hatch that you don't want, you can undo it, trim the hatch, or delete the hatch and rehatch the area. Create Custom Hatch Patterns You can also define your own hatch pattern using the current linetype with the User Defined Pattern option of the Hatch and Gradient dialog box, or you can create more complex hatch patterns. --- ## Other versions with matching text [GstarCAD 2011](../../../2011/User%20Guide/Hatches%E3%80%81Fills/Overview%20of%20Hatch%20Patterns%20and%20Fills.md)