RenameLayerState

Renames an existing layer state.

Syntax

Rhino.RenameLayerState (strOldState, strNewState)

Parameters

strOldState

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

strNewState

Required.  String.  The new layer name.

Returns

Boolean

True or False indicating success of failure.

Null

If not successful, or on error.

Example

Sub TestRenameLayerState

  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.RenameLayerState("Layer State 01", "MyLayerState")

End Sub

Also See

DeleteLayerState

RestoreLayerState

SaveLayerState