LayerLinetype

Returns or changes the linetype of a layer.

Syntax

rhinoscriptsyntax.LayerLinetype(layer, linetype=None)

rhinoscript.layer.LayerLinetype(layer, linetype=None)

Parameters

layer

Required. String. The name of an existing layer.

linetype

Optional. String. The name of the new linetype.

Returns

String

If a linetype is not specified,  the name of the current linetype if successful.

String

If a linetype is specified, the name of the previous linetype if successful.

Example

import rhinoscriptsyntax as rs

layers = rs.LayerNames()

if layers:

    for layer in layers:

        if rs.LayerLinetype(layer)!="Continuous":

            rs.LayerLinetype(layer,"Continuous")

Also See

LayerPrintColor

LayerPrintWidth