NamedLayerStateTable
ReferencesAll named layer states in a Rhino document.
Properties
Methods
Deletes an existing named layer state.
Parameters:
| name (string) | The name of the layer state. |
Returns: True if successful, false otherwise.
Returns the index of an existing named layer state.
Parameters:
| name (string) | The name of the layer state. |
Returns: >0 if successful, -1 if not found.
Imports named layer states from a 3dm file.
Parameters:
| filename (string) | The name of the file to import. |
Returns: The number of named layers states imported.
Renames an existing named layer state.
[CLSCompliant(false)]
public bool Restore(string name, RestoreLayerProperties properties, Guid viewportId)
Restores a named layer state.
Parameters:
| name (string) | The name of the layer state. |
| properties (RestoreLayerProperties) | The layer properties to restore. |
| viewportId (Guid) | The id of the layout or detail viewport to restore the per-viewport layer properties. |
Restores a named layer state.
Parameters:
| name (string) | The name of the layer state. |
| properties (RestoreLayerProperties) | The layer properties to restore. |
Returns: True if successful, false otherwise.
Saves or updates a named layer state.