DeleteLayerState

Removes an existing layer state from the document.

Syntax

Rhino.DeleteLayerState (strState)

Parameters

strState

Required.  String.  The name of an existing layer state.

Returns

Boolean

True or False indicating success or failure.

Null

On error.

Example

Sub TestDeleteLayerState

  Dim objPlugIn

  On Error Resume Next

  Set objPlugIn = Rhino.GetPluginObject("Rhino Bonus Tools")

  If Err Then

    MsgBox Err.Description

    Exit Sub

  End If

  Call objPlugIn.DeleteLayerState("Layer State 01")

End Sub

Also See

RenameLayerState

RestoreLayerState

SaveLayerState