RhinoCommon API
NamedLayerStateTableSave Method (String, Guid) |
Saves or updates a named layer state.
Namespace: Rhino.DocObjects.Tables
Assembly: RhinoCommon (in RhinoCommon.dll)

public int Save( string name, Guid viewportId )
Public Function Save ( name As String, viewportId As Guid ) As Integer
Parameters
- name
- Type: SystemString
The name of the layer state. If the named layer state already exists, it will be updated. - viewportId
- Type: SystemGuid
The id of the layout or detail viewport, required to save per viewport layer state properties.
Return Value
Type: Int32The index of the newly added, or updated, layer state.

Rhino for Windows
Supported in: 6.14