Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
acadplot2rhino [2018/09/11]
maryfugier [AutoCAD CTB]
acadplot2rhino [2018/09/21] (current)
sandy
Line 1: Line 1:
 ====== AutoCAD CTB to Rhino ====== ====== AutoCAD CTB to Rhino ======
-//How do I get my AutoCAD CTB lineweights and print colors into the Rhino?//  +//How do I get my AutoCAD CTB lineweights and print colors into Rhino?//  
-The AutoCAD CTB file is proprietary and complied. 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.+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.
  
 ===== AutoCAD CTB ===== ===== AutoCAD CTB =====
-At print time, AutoCAD uses a CTB (Color Table) to set the 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.  +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 ACI (AutoCAD Color Index) to the print width in mm. +It is this table that you can assign the **AutoCAD Color Index** (ACI) to the print width in mm. 
  
 {{ :​ctb_graphic.png?​500|}} {{ :​ctb_graphic.png?​500|}}
-If the objects color or layer color is set to **AutoCAD Color Index** (ACIof 1 or red, then it will be plotted with the pen weight that is set in the CTB file.  +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 filesthat 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.+You can have a library of many CTB files that configure the plotting of red differently. For exampleACI 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.
  
 ===== Rhino Print Settings ===== ===== Rhino Print Settings =====
 {{ ::​rhino_layers.png?​400|}} {{ ::​rhino_layers.png?​400|}}
-When you are working in Rhino, you may want to assign these setting ​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.  +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 in order to use these AutoCAD settings, you will need to assign the color and print width to the layer.+So to use these AutoCAD settings, you will need to assign the color and print width to the layer.
  
 {{ ::​csv_in_excel.png?​400|}} {{ ::​csv_in_excel.png?​400|}}
-Settings in the CSV file will be used as input for the script. The script ​will set the print width of layer, based on the color that is assigned to that layer. The script ​will convert ​the ACI color to RGB value and process ​the layer table, setting all layers that have the RGB color to the RGB color and print width in your CSV table. This is close as we can getting ​to the CTB behavior in Rhino.+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.
  
-==== Here is how it works. ​==== +==== How It Works ==== 
 //This script requires Rhinoceros 5 or 6 for Windows.// //This script requires Rhinoceros 5 or 6 for Windows.//
   - Download the [[http://​mcneel.s3.amazonaws.com/​misc/​samples/​SetAcadPrintInfo.zip|SetACADPrintInfo.ZIP]]. ​   - Download the [[http://​mcneel.s3.amazonaws.com/​misc/​samples/​SetAcadPrintInfo.zip|SetACADPrintInfo.ZIP]]. ​
acadplot2rhino.txt · Last modified: 2018/09/21 by sandy