Click or drag to resize

WorksessionFileWrite Method (String, Int32)

Writes a worksession file.

Namespace:  Rhino.FileIO
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 9.0
Syntax
public bool Write(
	string path,
	int version
)

Parameters

path
Type: SystemString
The file to write.
version
Type: SystemInt32
4 or 5. Version 4 needs exactly one active model and saves only the model file paths.

Return Value

Type: Boolean
True if the file was written. If false is returned, an existing file is left as it was.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf path is null.
See Also