Folders

public sealed class Folders
Provides access to all standard Grasshopper file and folder locations.

Properties

AppDataFolder

#
Gets the appdata folder for Grasshopper.
public static string AppDataFolder { get; }

AssemblyFolders

#
Gets a list of all the directories from which GHA assemblies are loaded. Note: this is not the same as all folders from which GHA files were loaded at startup. This list includes the default Grasshopper folders, custom GHA folders and the locations provided by Rhino.Runtime.HostUtils.GetAssemblySearchPaths(). Folders which do not contain GHA files are omitted, as are duplicate entries.
public static List<GH_AssemblyFolderInfo> AssemblyFolders { get; }
A list of load target directories.

AutoSaveFolder

#
Gets the directory in windows ApplicationData that contains the Grasshopper autosave files.
public static string AutoSaveFolder { get; }
A directory path.

ClusterFolders

#
Gets a list of all the directories from which GHCLUSTER files are loaded. GHUSER files are loaded from subfolders as well.
public static List<string> ClusterFolders { get; }
A list of load target directories.

CursorFolder

#
Gets the directory that contains the cursor files that ship with Grasshopper.
public static string CursorFolder { get; }

CustomAssemblyFolders

#
Gets or sets all custom assembly folders.
public static List<string> CustomAssemblyFolders { get; set; }

DefaultAssemblyFolder

#
Gets the standard directory in windows ApplicationData that contains 3rd party GHA files.
public static string DefaultAssemblyFolder { get; }
A directory path.

DefaultAssemblyFolderVersion6

#
Gets the standard directory in windows ApplicationData that contains 3rd party GHA files on v6.
[EditorBrowsable(EditorBrowsableState.Never)] public static string DefaultAssemblyFolderVersion6 { get; }
A directory path.

DefaultClusterFolder

#
Gets the standard directory in windows ApplicationData that contains GHCLUSTER files.
public static string DefaultClusterFolder { get; }
A directory path.

DefaultTemplateFolder

#
Gets the standard directory in windows ApplicationData that contains template files.
public static string DefaultTemplateFolder { get; }
A directory path.

DefaultUserObjectFolder

#
Gets the standard directory in windows ApplicationData that contains GHUSER files.
public static string DefaultUserObjectFolder { get; }
A directory path.

Desktop

#
Gets the desktop directory of the current user profile.
public static string Desktop { get; }

DownloaderApplication

#
Gets the location where the Downloader.exe should be. If the application is not present, null is returned.
public static string DownloaderApplication { get; }

FileViewerApplication

#
Gets the location where the FileViewer.exe should be. If the application is not present, null is returned.
public static string FileViewerApplication { get; }

IconFolder

#
Gets the directory that contains the icon files that ship with Grasshopper.
public static string IconFolder { get; }

ImageStitcherApplication

#
Gets the location where the ImageStitcher.exe should be. If the application is not present, null is returned.
public static string ImageStitcherApplication { get; }

PluginFolder

#
Gets the directory that contains the Grasshopper.dll file.
public static string PluginFolder { get; }

SDKDownloaderApplication

#
Gets the location where the SDKDownloader.exe should be. If the application is not present, null is returned.
public static string SDKDownloaderApplication { get; }

SettingsFolder

#
Gets the folder into which all Grasshopper settings are stored. This folder might not exist until some settings are actually saved.
public static string SettingsFolder { get; }

TemplateFolders

#
Gets a list of all the directories from which template files are loaded. Templates are not loaded from subfolders.
public static List<string> TemplateFolders { get; }
A list of load target directories.

ToolsFolder

#
Gets the directory that contains the additional executables that ship with Grasshopper.
public static string ToolsFolder { get; }
obsoleteThere no longer is a Tools folder, all tools are now directly in the PluginFolder

TutorialFiles

#
Gets an array of all the tutorial files. This includes all the files with the *.gh or *.ghx extension in the Tutorials folder. Subfolders are not traversed.
public static string[] TutorialFiles { get; }

TutorialFolder

#
Gets the directory that contains the tutorial files that ship with Grasshopper.
public static string TutorialFolder { get; }

UserObjectFolders

#
Gets a list of all the directories from which GHUSER files are loaded. GHUSER files are loaded from subfolders as well.
public static List<string> UserObjectFolders { get; }
A list of load target directories.

VersionHistoryFile

#
Gets the text file location where Grasshopper will save the latest version information.
public static string VersionHistoryFile { get; }

VersionHistoryUrl

#
Gets the url of the version history data.
public static string VersionHistoryUrl { get; }

Methods

ShowFolderInExplorer

#
Open a specific folder in Windows Explorer.
public static void ShowFolderInExplorer(
folder
)