PATGEN is a simple hatch pattern generator which allows the creation of new patterns without any knowledge of the description language used in AutoCAD PAT files. The user simply draws the pattern using AutoCAD Entities, selects these entities, enters the rectangle that defines the X and Y iterations and finally names the new pattern. Once the pattern generated, it is loaded as the current hatch pattern for BHATCH command.