WorkingFolder

Returns or sets Rhino's working directory, or folder.  The working folder is the default folder for all file operations.

Syntax

rhinoscriptsyntax.WorkingFolder( folder=None )

rhinoscript.application.WorkingFolder( folder=None )

Parameters

enable

Optional.  String.  The new working folder.

Returns

String

If folder is not specified, then the current working folder if successful.

String

If folder is specified, then the previous working folder if successful.

Example

import rhinoscriptsyntax as rs

folder = rs.WorkingFolder()

folder = rs.BrowseForFolder(folder, "Directory", "Select Directory")

if folder is not None:

    rs.WorkingFolder(folder)

Also See

BrowseForFolder