Rhino Mac- Create Hatch Pattern

Loving the development of rhino for mac having been a big fan of windows version.

I have never needed to do it but before but is there a function to create custom hatch patterns within rhino?

Hi Ned,
A while ago I needed to do just that, so I wrote a little python script:
Special Hatch.py (2.9 KB)
I tried to make it self-explanatory, hope you can use it.


1 Like

Hey Max,
Thanks, looks great , will give it a whirl later.
How do you geniuses do these things…?

Step by step…:relaxed:

Hi Ned,

Rhino uses AutoCAD-style hatch patterns. So if you Google “AutoCAD Hatch Patterns” you’ll find much of free stuff you can download and import into a document (File -> Settings -> Hatch -> click the gear and pick "Load hatch patterns from file.

– Dale

1 Like

A post was split to a new topic: Importing hatch pattern

Hi Max,
I tried your script last year but I couldn’t get it working (probably because it was all new territory).
I am now trying again but unsuccessfully.

I have:

  • Drawn curve that I want to use as hatches with a bounding box but am not sure what to do next.


Hi Ned,

To begin with: it is not a foolproof script, if you do anything the script does not expect, you will get an extensive report where exactly the script could not cope. But no harm done, nothing will change in your drawing.

The steps:

  • draw something you want to repeat as a hatch pattern. Draw a rectangle outside that something, which will serve as the repeated space of your pattern, i.e. how far the individual pattern elements are apart.

  • run the script. You will be prompted to select the objects you want to repeat. Select and hit Enter.

  • the next prompt will ask you to identify the repeat-space element, i.e. the rectangle. Select and hit enter.

  • now you will be asked to select the curves that bound the area to be hatched. Select and hit enter. Click somewhere in the area to be hatched.

  • the hatch pattern appears selected, but it will run over the selected boundary lines. Move the pattern until you are happy how it sits. Hit enter, and everything outside the requested boundary will be trimmed off.

That’s it.

P.S., you could do away with the space-repeat element, just select the hatch elements again and hit enter. The script will then use the bounding box encompassing those elements as your “space-repeat element”

Hi Max,
How do I run a script in rhino mac??

Hi Ned,

I am not sure if you can store scripts in any location and use the path in the command, but I store my python scripts in User/{user name}/Library/Application Support/McNeel/Rhinoceros/scripts/{script name}.py

I then use the command RunPythonScript, which opens that directory, and select the script in question.

1 Like

That’s works great, is there any way I can embed the the hatch to be available as a hatch within the rhino library? So I can easily apply it when necessary?

What I’m making is a new grass hatch pattern for some large 2d drawings