Selects layers in Rhino's layer user interface. Note, to deselect all layers, just pass a null value as the first argument.
Rhino.SelectLayers (strLayer [, blnDeselect])
Rhino.SelectLayers (arrLayers[, blnDeselect])
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. |
Number |
The number of layers that were selected if successful. |
Null |
If not successful, or on error. |
Dim arrLayers, i
Call Rhino.SelectLayers(null)
arrLayers = Rhino.LayerIds
For i = 0 to UBound(arrLayers) Step 2
Call Rhino.SelectLayers(arrLayers(i))
Next