Build a custom hatch pattern in your browser: choose a brick bond, tile, herringbone, plank, dash or dot pattern, type the real sizes and watch the preview repeat to scale. Download it as an AutoCAD .pat file, as a Revit model or drafting fill pattern in millimetres or inches, or as a seamless SVG or PNG tile for Illustrator, Inkscape, Figma or Photoshop. The files are written in your browser, nothing is uploaded and there is no sign up.
_MM or _IN, so the millimetre and inch files never overwrite each other.Save JSON keeps the setup for later, Copy text puts the file on the clipboard, and Print gives a one page sheet of the tool.
Every hatch pattern, in AutoCAD and in Revit, is a set of line families. One family is one line of the file:
angle, x-origin, y-origin, delta-x, delta-y, dash-1, dash-2, ...
The classic ANSI31 hatch for brick and stone is a single family, 45, 0,0, 0,.125: lines at 45 degrees, 0.125 inch apart. A running bond of 215 x 65 mm bricks with 10 mm joints, drawn as one line per joint, needs two families:
0, 0,0, 0,75 draws the bed joints, one every 75 mm (65 mm brick plus 10 mm joint).90, 0,0, -75,112.5, 75,-75 draws the head joints. They are vertical, one every 112.5 mm, and each one is drawn for one course and skipped for the next. The shift of 75 mm along the line moves the dash by a course each time, which offsets the joints by half a brick.The generator does this arithmetic for you and merges joints that fall on the same line, so nothing is drawn twice. The file and the preview come from the same list of families, so what you see is what AutoCAD or Revit will draw.
For which hatch stands for which material, see our guide to architectural hatch patterns. This page sticks to making the file.
Revit reads the same line family format as AutoCAD, but the two programs disagree on the details around it. The generator writes each version to its own rules, which is why there are two download buttons.
| Rule | AutoCAD .pat | Revit .pat |
|---|---|---|
| Header lines | none, just *NAME, description |
;%UNITS=MM or INCH, ;%VERSION=3.0 |
| Pattern type | not used | ;%TYPE=MODEL or ;%TYPE=DRAFTING under each pattern header |
| Pattern name | at most 31 characters: letters, digits, underscore, hyphen and dollar sign | any ASCII text except a comma, spaces allowed |
| Line length | at most 80 characters | up to 4096 characters |
| Dash values per line | at most 6 | no such limit |
| File | one pattern per file, named after the pattern, with a blank line at the end | one file can hold many patterns |
| Dots | drawn as dots | drawn as very short dashes |
When a family needs more than six dash values or a line would pass 80 characters, the generator splits it into several families that draw exactly the same thing. The AutoCAD rules are set out in the Autodesk AutoCAD Customization Guide, under About Custom Hatch Patterns and Hatch Pattern Definitions. The Revit rules come from the header of the revit.pat file that ships with Revit.
This choice only exists in Revit, and it decides what happens when the view scale changes.
The generator warns you when the size looks wrong for the type you picked. It is a hint, not an error.
la_running_215x65_mm.pat for the pattern *LA_RUNNING_215X65_MM, in a folder that is on the support file search path (Options, Files tab). Run HATCH and pick the pattern from the list of custom patterns. If your browser adds ” (1)” on a second download, rename the file: AutoCAD needs the file name to match the pattern name.Seamless tiles need a rectangular repeat. At an odd angle such as 10 degrees most patterns have none, and the tool says so: the .pat file is still correct, but there is no SVG or PNG tile to export.
The second tab writes linetype files in the simple AutoCAD format: a header line *NAME,description followed by A,dash,gap,.... Start from one of the acad.lin definitions (DASHED, HIDDEN, CENTER, PHANTOM, DOT, DASHDOT, BORDER, DIVIDE) and change the values, or type your own sequence. In millimetres the presets are the acadiso.lin values, which are the inch values times 25.4.
The tool checks the AutoCAD rules as you type: a definition needs 2 to 12 values, the first value must be a dash or a dot (0 or more), the name can have at most 31 characters and the description at most 47. The preview shows the linetype at three scales. Revit has no linetype file: create line patterns under Manage, Additional Settings, Line Patterns, with the same dash and space values.
A .pat file can only hold straight line segments: no arcs, curves, solid fills or true randomness. Stone with curved edges or organic textures cannot be written as a hatch, and the concrete stipple is a scatter that repeats. If you need curves, use an image tile instead. The tool also does not copy the internal density limits of AutoCAD and Revit, which Autodesk does not publish; it warns about typical Revit sizes and stops the preview when a pattern is too dense to draw.
Yes. There is no account and no sign up, and the files are built in your browser. Nothing you draw or open is sent to a server.
Yes, but download the Revit version. It starts with ;%UNITS=MM (or INCH) and ;%VERSION=3.0 and marks each pattern ;%TYPE=MODEL or ;%TYPE=DRAFTING. Import it from the Fill Patterns dialog and pick the same type.
The file name must match the pattern name, the file must be in a support file search path folder, the name must be 31 characters or less and there must be a blank line after the last line. The generator writes all of this; check that the file was not renamed by your browser on a second download. Autodesk lists the same checks in Why can’t I use my custom hatch pattern (PAT) files?
Yes. Open .pat file reads AutoCAD and Revit files up to 2 MB, lists every pattern in the file and previews the one you pick to scale. Units come from the ;%UNITS line, or you can set them by hand. You can then edit the pattern and export it again, for example to turn an inch AutoCAD pattern into a Revit millimetre model pattern.
The hatch goes into your drawing. For the sheet, the title block generator draws the frame, title block and revision table at true paper size and exports DXF.
Skip hours of rendering setup. Archfine turns sketches, photos, CAD exports and 3D model screenshots into presentation-ready architectural visuals in seconds. Try it free with 3 renders.