Insulation automatic drafter
To automate the drawing of zigzag-shaped insulation
Introduction
This script is written in Python and uses the rhinoscriptsyntax library. It allows the user to select a rectangle in Rhino and creates a polyline that follows a zigzag pattern. The zigzag pattern is inscribed in the rectangle and its wave size is equal to the zigzag's pattern side size.
Features
Inscribes a zigzag pattern in a rectangle
Wave size of the zigzag pattern is equal to the zigzag's pattern side size
The script works with both horizontal and vertical rectangles
Usage
Make sure you have Rhino and RhinoPython installed
Download the script
Open Rhino and use the
RunPythonScript
command to load the scriptSelect a rectangle
The script will create a zigzag pattern inscribed in the rectangle
Logic
The script starts by asking the user to select a rectangle in Rhino
The script gets the bounding box of the selected rectangle and calculates the width and height
The script calculates the zigzag pattern side by getting the smaller side of the rectangle and applying some math operations
The script checks if the rectangle is horizontal or vertical and creates the polyline points accordingly
The script creates a polyline that passes through all the points
Dependencies
Rhino
rhinoscriptsyntax library (included in Rhino)
Known issues
The script won't work on rotated rectangles that are not strictly horizontal or vertical
Script
Last updated