SelectLayers

Selects layers in Rhino's layer user interface. Note, to deselect all layers, just pass a null value as the first argument.

Syntax

Rhino.SelectLayers (strLayer [, blnDeselect])

Rhino.SelectLayers (arrLayers[, blnDeselect])

Parameters

strLayer

Required.  The name or identifier of an existing layer to select.

arrLayers

Required.  Any array of names or identifiers of existing layers to select.

blnDeselect

Optional.  If False (Default), then layers that are already selected will not be deselected. If true, any selected layers will be deselected.

Returns

Number

The number of layers that were selected if successful.

Null

If not successful, or on error.

Example

Dim arrLayers, i

Call Rhino.SelectLayers(null)

arrLayers = Rhino.LayerIds

For i = 0 to UBound(arrLayers) Step 2

  Call Rhino.SelectLayers(arrLayers(i))

Next

Also See

LayerName

SelectedLayers