Returns the identifier of a layer given the layer's name.
Rhino.LayerId (strLayer)
strLayer |
Required. String. The name of an existing layer. |
String |
The layer's identifier 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 Rhino.LayerId(strLayer)
Next
End If