Pat_writer is a grasshopper script that turns any lines into hatch patterns as .pat files for CAD and BIM softwares.
Hatching is a useful tool in CAD softwares for drawing repeating patterns but the default options are often limiting. For more intricate patterns, common workarounds easily trigger performance issues (e.g. superhatch in AutoCAD). As an alternative, this script allows user to custom-define any complicated line patterns into hatch files (.pat) to maintain a light-weight CAD drawing.
demo.mp4
👆Please feel free if my scripts had been useful for your projects. :)
- Download pat_writer.gh and open with Rhino 8.
- Draw the pattern to be repeated. Curves and polylines shall be segmented and exploded into shorter lines.
- Reference the lines into the
_Linescomponent. - If
boundis disconnected, the pattern repeats with the size of its bounding box. Otherwise the size can be custom-defined by connecting and inputting in the format ofX,Y. - Specify the folder destination and file name at
filepathandhatchname. - Click
write_fileto create the .pat file at the designated location.
(for where AutoCAD reads .pat files, see relevant discussions.)
_Lines).
- Window OS
- Rhino 8











