Create your own AutoCAD hatch patterns and Revit fill patterns without writing PAT code by hand. Draw lines and dots on a repeating grid, or start from a preset, see a live preview, and download a ready .pat file.
AutoCAD and Revit hatch patterns are stored in .pat files: plain text where every repeating set of parallel lines is one line of numbers. Writing those numbers by hand is slow and error-prone, especially for sloping lines or offsets like brick bonds. This generator lets you draw the pattern on a repeating tile instead and writes the PAT code for you. The preview is drawn from the generated PAT data itself, so what you see is what AutoCAD or Revit will draw.
Looking for ready-made patterns instead? See our AutoCAD hatch patterns free download.
Each pattern starts with a header line, *NAME, description, followed by one line per family of parallel lines:
angle, x-origin, y-origin, delta-x, delta-y, dash-1, dash-2, …The running bond brick preset, for example, produces:
*MB_BRICK, Running bond brick
0, 0, 0, 0, 150
0, 0, 75, 0, 150
90, 0, 0, 0, 225, 75, -75
90, 112.5, 75, 0, 225, 75, -75The two horizontal families draw the bed joints every 75 units; the two vertical families draw the head joints, 75 long with 75 gaps, the second one shifted half a brick for the bond.
MB_BRICK.pat; the generator names the download this way.More CAD resources: AutoCAD advanced commands and tips for MEP and the AutoCAD blocks library for MEP systems.
Write the pattern as a .pat file, with a header line *NAME followed by one line per family of parallel lines, save it with the same name as the pattern in a folder on AutoCAD's support path, and select it as a Custom pattern in the HATCH command. A generator like this one writes the PAT lines for you from a drawing.
Usually the file name does not match the pattern name, or the file is not in a folder on the support file search path. A custom .pat file must contain one pattern whose name matches the file name.
Revit reads PAT files but needs a ;%TYPE=MODEL or ;%TYPE=DRAFTING line and a units line. Choose a Revit format before downloading and the generator adds them.
Delta-y is the spacing between the parallel lines of one family. Delta-x is the shift of each next line along its own direction, which is how offset patterns such as running bond brick are made.
If you set the cell sizes in real drawing units, for example millimetres for a millimetre drawing, use a hatch scale of 1. Otherwise scale the hatch until the module matches the real size.
Found a number that looks wrong, or a case the tool does not cover? Say so here — corrections are welcome and get answered.
No comments yet. Be the first to add one.