FileSettings
Contains static methods and properties relating Rhino files.
Properties
Enables or disables Rhino's automatic file saving mechanism.
the file name used by Rhino's automatic file saving mechanism.
how often the document will be saved when Rhino's automatic file saving mechanism is enabled.
save render and display meshes in autosave file.
Returns or sets the location of Rhino's backup files.
Gets or sets a value that decides if copies to the clipboard are performed in both the current and previous Rhino clipboard formats. This means you will double the size of what is saved in the clipboard but will be able to copy from the current to the previous version using the clipboard.
Gets or sets a value that determines what to do with clipboard data on exit.
Gets or sets a value that controls the creation of backup files.
Gets or sets a value that controls the creation of other types of backup files.
Gets the path to the default RUI file.
Returns the directory where the main Rhino executable is located.
Ensure that only one person at a time can have a file open for saving.
Gets or sets whether to display the information dialog which identifies computer files.
Returns Rhino's installation folder.
Get full path to a Rhino specific sub-folder under the per-user Local (non-roaming) Profile folder. This is the folder where user-specific data is stored. On Windows 7, 8, usually someplace like: "C:\Users\[USERNAME]\AppData\Local\McNeel\Rhinoceros\[VERSION_NUMBER]\"
Gets or sets a value that controls whether the Export command fills in the file name. When enabled, the file dialog starts out with the model's name in the last used export folder, made unique with a number suffix if that file already exists. When disabled, the file name starts out empty.
true for users who consider view changes a document change.
Gets the amount of search paths that are currently defined.
Returns or sets the location of Rhino's template file.
Returns or sets the location of Rhino's template files.
Methods
Adds a new imagePath to Rhino's search imagePath list. See "Options Files settings" in the Rhino help file for more details.
Input list of commands that force AutoSave prior to running.
Returns the default template folder for a given language id.
Parameters:
| languageID (int) |
Returns: The default template folder as string.
Removes an existing imagePath from Rhino's search imagePath list. See "Options Files settings" in the Rhino help file for more details.
Parameters:
| folder (string) | [in] The valid folder, or imagePath, to remove. |
Returns: true or false indicating success or failure.
Searches for a file using Rhino's search imagePath. Rhino will look for a file in the following locations: 1. The current document's folder. 2. Folder's specified in Options dialog, File tab. 3. Rhino's System folders.
Parameters:
| fileName (string) | short file name to search for. |
Returns: full imagePath on success; null on error.
Returns the current state.
Returns: A new instance containing the current state.
Gets the data folder for machine or current user.
Parameters:
| currentUser (bool) | true if the query relates to the current user. |
Returns: A directory to user or machine data.
Returns the default state.
Returns: A new instance containing the default state.
Returns all of the imagePath items in Rhino's search imagePath list. See "Options Files settings" in the Rhino help file for more details.
Returns a list of recently opened files. Note that this function does not check to make sure that these files still exist.
Returns: An array of strings with the paths to the recently opened files.
Set list of commands that force AutoSave prior to running.
Parameters:
| commands (string[]) |
Sets all settings to a particular defined joined state.
Parameters:
| state (FileSettingsState) | A joined settings object. |