AddHatch method

Creates a new hatch object and adds it to the drawing.

Syntax

objectVariable = object.AddHatch(PatternType, PatternName)

Where:

     objectVariable is a Hatch object;

     object is one of the ModelSpace or PaperSpace collection objects or a Block object;

     PatternType is a Long integer representing one of the following HatchType constants:

0     PreDefinedHatchPattern

1     UserDefinedHatchPattern

2     CustomDefinedHatchPattern

     PatternName is a String representing the name of the hatch pattern to be used.