Skip to content

Scripts aiming at producing architectural drawings in Rhino3D with more control on lineweights and plots styles. Built on the principle of CTB function of AutoCAD.

License

Notifications You must be signed in to change notification settings

artonoximee/rhino-plot-styles

Repository files navigation

rhino plot styles - a ctb-like function for Rhino3d

Introduction

This repository contains a set of scripts aiming at producing architectural drawings in Rhino3D with more control on lineweights and plots styles. It has been built on the principle of CTB function of AutoCAD.

1. The Excel file that contains everything

screenshot Excel

We are taking the CTB function from AutoCAD as an example of managing plot styles.

Here, instead of a CTB file, the data is stored in an Excel file MLAVPlotStyles.xlsx.

In red are the global informations, and in blue are the informations specific to each scale (1:1000 ; 1:500 ; 1:200 ; 1:100 ; 1:50):

  1. Layer hierarchy
  2. Full layer names
  3. Layer color
  4. Layer print color
  5. Layer linetype
  6. Line thickness (in pt)
  7. Line thickness (in mm)
  8. Pattern (for Illustrator only)
  9. Then we created a worksheet (createLayers) that recaps the full layer names and their rgb colors (will be used for step 3). And finally we created a worksheet for each scale, that recaps only the information of the specific scale (will be used for step 2).

2. The python script that generates all the .csv and .js files from the Excel file

The MakePlotStyles.py script generates three kinds of outputs that will be used in the next steps:

  1. Will be used for step 3 : layers.csv (according to the createLayers worksheet in Excel)
  2. Will be used for step 4 : 1000.csv ; 500.csv ; 200.csv ; 100.csv ; 50.csv (plot styles for each scale)
  3. Will be used for step 5 : 1000.js ; 500.js ; 200.js ; 100.js ; 50.js (plot styles for each scale). These files are created to be used in Illustrator.

3. The python script that creates the right layers in Rhino

The CreateLayers.py script creates layers from the layers.csv list in Rhino3D.

We know we could use a Rhino3D template file to create this, but in our practice, we find it more practical to generate our working layers this way.

4. The python script that assign the right plot style according to a chosen scale in Rhino

The SetPlotStyles.py script assigns values of print color and lineweights to each layer in Rhino3D.

For this step we used this .rvb script as a starting point. We recreated it in python, and changed it a bit.

The user runs the python script, chooses an option of scale (1:1000, 1:500, etc) in a popup, and the script loads the right .csv file to apply the right plot style to each layer.

5. The .js scripts that can be used in Illustrator

These files are generated by the script in step 2. They are used in the following case : something has been drawn in Rhino, but the layout and plot styles are handled in Illustrator.

When the exported Rhino file is opened in Illustrator, the .js script will apply the same plot styles as the one created for Rhino.

About

Scripts aiming at producing architectural drawings in Rhino3D with more control on lineweights and plots styles. Built on the principle of CTB function of AutoCAD.

Topics

Resources

License

Stars

Watchers

Forks