GetLayers

Displays a dialog box prompting the user to select one or more layers.

Syntax

rhinoscriptsyntax.GetLayers (title="Select Layers", show_new_layer=False)

rhinoscript.userinterfacex.GetLayers (title="Select Layers", show_new_layer=False)

Parameters

title

Optional.  String.  A dialog box title.

show_new_layer

Optional.  Boolean.  Display the "New" layer button. If omitted, the button is not displayed.

Returns

List

The names of the selected layers if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

layers = rs.GetLayers("Select Layers")

if layers:

    for layer in layers: print layer

Also See

GetLayer

GetLinetype

GetPrintWidth