Returns the current display order index of a layer as displayed in Rhino's Layer dialog box. A display order index of -1 indicates that the current Layer dialog filter does not allow the layer to appear in the layer list.
Rhino.LayerOrder (strLayer)
strLayer |
Required. String. The name or identifier of an existing layer. |
Number |
A zero-based display order index if successful. |
Null |
If not successful, or on error. |
Dim intIndex
intIndex = Rhino.LayerOrder("Default")
If IsNumeric(intIndex) Then
If intIndex = -1 Then
Rhino.Print "The layer does not display in the Layer dialog."
Else
Rhino.Print "The layer does display in the Layer dialog."
End IF
End If