Restores a previously saved layer state.
Rhino.RestoreLayerState (strState [, intMode])
strState |
Required. String. The name of an existing layer state. |
||||||||||||||||||
intMode |
Required. Number. The layer properties you want restored. Values can be added together in order to restore any number of properties at a time. If omitted, all layer properties will be restored.
|
Boolean |
True or False indicating success of failure. |
Null |
If not successful, or on error. |
Sub TestRestoreLayerState
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.RestoreLayerState("MyLayerState", 8)
End Sub