CADopia - Adding Hatching
Hatching fills a specified area with lines, crosshatching, or other hatch patterns.
The first step in hatching an area is to create the Hatch object. Once this is done, you specify the hatch boundaries.
Creating a Hatch Object
To create a hatch object, use the AddHatch method.
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.
Comments