Returns the names of all layers in the document. Hierarchial layer names are return as "full path" names.
Rhino.LayerNames ([blnSort])
blnSort |
Optional. Boolean. Return a sorted list of layer names. The default is not to return a sorted list (False). |
Array |
An array of full path layer names if successful. |
Null |
If not successful, or on error. |
Dim arrLayers, strLayer
arrLayers = Rhino.LayerNames
If IsArray(arrLayers) Then
For Each strLayer In arrLayers
Rhino.Print strLayer
Next
End If