Click or drag to resize

WorksessionFileModel Class

A model in a Rhino worksession (.rws) file.
Inheritance Hierarchy
SystemObject
  Rhino.FileIOWorksessionFileModel

Namespace:  Rhino.FileIO
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 9.0
Syntax
public sealed class WorksessionFileModel : IDisposable

The WorksessionFileModel type exposes the following members.

Constructors
  NameDescription
Public methodWorksessionFileModel
Creates a reference model with no paths and no layer overrides.
Public methodWorksessionFileModel(String)
Creates a reference model for a model file.
Public methodWorksessionFileModel(WorksessionFileModel)
Creates a copy of another model.
Top
Properties
  NameDescription
Public propertyFullPath
Gets or sets the full path of the model file, as saved. Nothing checks that it exists.
Public propertyIsActive
Gets or sets whether this is the model that was active when the worksession was saved. Every other model is a reference model.
Public propertyLayerOverrideCount
Gets the number of layer overrides. Rhino does not save or use layer overrides for the active model. Version 4 files do not have them.
Public propertyRelativePath
Gets or sets the path of the model file relative to the .rws file, as saved. Rhino uses it when the file is no longer at FullPath. It can be empty. Version 4 files do not have it.
Top
Methods
  NameDescription
Public methodAddLayerOverride
Adds a copy of a layer override to the end of the list.
Public methodClearLayerOverrides
Removes all of the layer overrides.
Public methodDispose
Releases the native model.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Releases the native model.
(Overrides ObjectFinalize.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetLayerOverride
Gets a copy of a layer override.
Public methodGetLayerOverrides
Gets copies of all of the layer overrides.
Public methodGetParentLayerValues
Gets a copy of the settings of the layer Rhino adds as the parent of all of a reference model's layers. Version 4 files do not have them.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodRemoveLayerOverrideAt
Removes a layer override.
Public methodSetLayerOverride
Replaces a layer override with a copy of another.
Public methodSetParentLayerValues
Replaces the parent layer settings with a copy of values.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also