WorksessionFile Class |
Namespace: Rhino.FileIO
The WorksessionFile type exposes the following members.
| Name | Description | |
|---|---|---|
| WorksessionFile | Creates an empty worksession with no models. | |
| WorksessionFile(WorksessionFile) | Creates a copy of another worksession. |
| Name | Description | |
|---|---|---|
| ActiveModelIndex |
Gets the index of the first active model, or -1 if there is no active model.
| |
| CurrentVersion | The worksession file version Rhino 5 and later write. | |
| ModelCount | Gets the number of models. | |
| Version |
Gets or sets the file version. Reading sets it to the version of the file that was read.
Writing does not use it.
|
| Name | Description | |
|---|---|---|
| AddModel | Adds a copy of a model to the end of the list. | |
| ClearModels | Removes all of the models. | |
| Dispose | Releases the native worksession. | |
| Dump |
Describes the worksession: its version, and for each model its paths and saved layer
settings. For each saved layer it gives its name and the settings Rhino uses.
| |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | Releases the native worksession. (Overrides ObjectFinalize.) | |
| FromByteArray | Reads a worksession from the contents of a worksession file. | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetModel | Gets a copy of a model. | |
| GetModels | Gets copies of all of the models. | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| Read | Reads a worksession file. | |
| ReadFileVersion |
Reads only the version from the header of a worksession file.
| |
| RemoveModelAt | Removes a model. | |
| SetModel | Replaces a model with a copy of another. | |
| ToByteArray | Writes the worksession as the contents of a version 5 .rws file. | |
| ToByteArray(Int32) | Writes the worksession as the contents of a .rws file. | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) | |
| Write(String) |
Writes a version 5 worksession file.
| |
| Write(String, Int32) | Writes a worksession file. |