The sample project for working with hatches is located in the Drawing\Examples\DevGuide\OdHatchEx
subdirectory of the ODA installation folder (for example, C:\Program Files\Open
Design Alliance).
The sample project demonstrates creating a hatch and modifying and displaying
its properties. The application creates a .dwg file, and then prints the following
information about the created hatch objects:
Number of loops
Hatch object type
Hatch style
Hatch area
Hatch origin point
Hatch normal
Hatch elevation
Pattern type or gradient type
Pattern name or gradient name
Pattern angle or gradient angle
Pattern scale or gradient shift
PatternDouble flag
The application generates a .dwg file that contains six hatch objects which
show specific types of hatches:
First hatch shows the simple solid pattern.
Second hatch shows the simple user predefined pattern.
Third hatch shows a hatch with a circular hole.
Fourth hatch shows an associative predefined hatch.
Fifth hatch shows an associative custom defined hatch.