LayerPrintWidth

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.

Syntax

rhinoscriptsyntax.LayerPrintWidth(layer, width=None)

rhinoscript.layer.LayerPrintWidth(layer, width=None)

Parameters

layer

Required. String. The name of an existing layer.

width

Optional. Number. The new layer print width in millimeters.

Returns

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.

Example

import rhinoscriptsyntax as rs

layers = rs.LayerNames()

if layers:

    for layer in layers:

        if rs.LayerPrintWidth(layer)!=0:

            rs.LayerPrintWidth(layer, 0)

Also See

LayerLinetype

LayerPrintColor