About Creating Hatches (VBA/ActiveX)

Hatching fills a specified area in a drawing with a pattern.

When creating the Hatch object, you specify the hatch pattern type, the hatch pattern name, and the associativity. Once the Hatch object has been created, you will not be able to change the hatch associativity.

The following explains the order in which a Hatch object is created and defined:

  1. Create the Hatch object.
  2. Specify the outer loop, which is the outermost boundary for the hatch.
  3. Specify any inner loops that may exist in the hatch.

To create a Hatch object, use the AddHatch method.

Associative Hatch

You can create associative or nonassociative hatches. Associative hatches are linked to their boundaries and updated when the boundaries are modified. Nonassociative hatches are independent of their boundaries.

Associativity can only be set when a hatch is created. Once a hatch has been created, you can unassociate it, but you cannot associate it again.

To make a hatch associative, set the Associativity parameter of the AddHatch method to TRUE. To make a hatch nonassociative, set the Associativity parameter of the AddHatch method to FALSE.