How do I get my AutoCAD CTB line weights and print colors into Rhino? The AutoCAD CTB file is proprietary and compiled. So our script can not read it directly. You will need to manually update a CSV file and use our script to read that file. Our script will change all the layers that match the color in the CTB file to the width that you specify in the CSV file. Here are the details.
Another Option: See this thread on the Rhino Support Forum for a py script with similar features.
At print time, AutoCAD uses a CTB (Color Table) to set the colors that you see on the display to pen widths on the plot. Color can be set by object or to the layer that the object is assigned. It is this table that you can assign the AutoCAD Color Index (ACI) to the print width in mm.
If the objects color or layer color is set to ACI of 1 or red, then it will be plotted with the pen weight that is set in the CTB file. You can have a library of many CTB files that configure the plotting of red differently. For example, ACI 1 or Red may plot with a pen weight of .5mm and color of red in one CTB, and pen weight of .25 and color of gray in another. The CTB that is assigned at plot time will determine this.
When you are working in Rhino, you may want to assign these settings to your Rhino model. However, Rhino can not open the CTB file. In Rhino, print color and print width are assigned to the layer or the object. So to use these AutoCAD settings, you will need to assign the color and print width to the layer.
Settings in the CSV file are used as input for the script. The script sets the print width of layer, based on the color that is assigned to that layer. The script converts the ACI color to RGB value and processes the layer table, setting all layers that have the RGB color to the RGB color and print width in your CSV table. This is as close as we can get to the CTB behavior in Rhino.
This script requires Rhinoceros 5, 6 or 7 for Windows.