# WorksessionFileModel class

Namespace: [Rhino.FileIO](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.fileio.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md) · Since v9.0

```cs
public sealed class WorksessionFileModel : IDisposable
```

A model in a Rhino worksession (.rws) file.

## Constructors

- [WorksessionFileModel](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.worksessionfilemodel/ctor.md): (3 overloads) Creates a reference model with no paths and no layer overrides.

## Finalizer

- [~WorksessionFileModel](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.worksessionfilemodel/finalize.md): Releases the native model.

## Properties

- [FullPath](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.worksessionfilemodel/fullpath.md): Gets or sets the full path of the model file, as saved. Nothing checks that it exists.
- [IsActive](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.worksessionfilemodel/isactive.md): Gets or sets whether this is the model that was active when the worksession was saved. Every other model is a reference model.
- [LayerOverrideCount](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.worksessionfilemodel/layeroverridecount.md): 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.
- [RelativePath](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.worksessionfilemodel/relativepath.md): 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 [WorksessionFileModel.FullPath](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.worksessionfilemodel/fullpath.md). It can be empty. Version 4 files do not have it.

## Methods

- [AddLayerOverride](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.worksessionfilemodel/addlayeroverride.md): Adds a copy of a layer override to the end of the list.
- [ClearLayerOverrides](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.worksessionfilemodel/clearlayeroverrides.md): Removes all of the layer overrides.
- [Dispose](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.worksessionfilemodel/dispose.md): Releases the native model.
- [GetLayerOverride](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.worksessionfilemodel/getlayeroverride.md): Gets a copy of a layer override.
- [GetLayerOverrides](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.worksessionfilemodel/getlayeroverrides.md): Gets copies of all of the layer overrides.
- [GetParentLayerValues](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.worksessionfilemodel/getparentlayervalues.md): 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.
- [RemoveLayerOverrideAt](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.worksessionfilemodel/removelayeroverrideat.md): Removes a layer override.
- [SetLayerOverride](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.worksessionfilemodel/setlayeroverride.md): Replaces a layer override with a copy of another.
- [SetParentLayerValues](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.worksessionfilemodel/setparentlayervalues.md): Replaces the parent layer settings with a copy of values.
