Returns or changes the print width of a layer. Print width is specified in millimeters. A print width of 0.0 denotes the "default" print width.
rhinoscriptsyntax.LayerPrintWidth(layer, width=None)
rhinoscript.layer.LayerPrintWidth(layer, width=None)
layer |
Required. String. The name of an existing layer. |
width |
Optional. Number. The new layer print width in millimeters. |
Number |
If a layer print width is not specified, the current layer print width if successful. |
Number |
If a layer print width is specified, the previous layer print width if successful. |
import rhinoscriptsyntax as rs
layers = rs.LayerNames()
if layers:
for layer in layers:
if rs.LayerPrintWidth(layer)!=0:
rs.LayerPrintWidth(layer, 0)