I just want to happily share in this community that I wrote a script for creating custom hatch patterns. I couldn’t find something similar so I decided to make one myself and hope it reaches whoever struggled similarly.
The script inputs any lines (not polylines nor curves) and outputs a .pat file that multiple CAD software read as hatch patterns.
More detailed descriptions, source code, instructions, and examples had been included in the GitHub link below.
It still boggles my mind that the major CAD packages don’t have this functionality built in. Autocad still ships with the same acad.pat file since at least R14 (the earliest version I ever used), and the Help page for how to make your own patterns is still the same eldritch horror that it was back then.
The AutoCAD help forum in general is a circle of hell on its own, also apparently the functionality isn’t available for AutoCAD LT
Personally I simply create a block of the pattern, then use the XCLIP command to fit it inside wherever I need to. Sadly, XCLIP is the one AutoCAD functionality that is not available in Rhino, despite being pretty much vital