LayerNames

Returns the names of all layers in the document. Hierarchial layer names are return as "full path" names.

Syntax

Rhino.LayerNames ([blnSort])

Parameters

blnSort

Optional.  Boolean.  Return a sorted list of layer names. The default is not to return a sorted list (False).

Returns

Array

An array of full path layer names if successful.

Null

If not successful, or on error.

Example

Dim arrLayers, strLayer

arrLayers = Rhino.LayerNames

If IsArray(arrLayers) Then

  For Each strLayer In arrLayers

    Rhino.Print strLayer

  Next

End If

Also See

LayerCount

LayerIds