Folders

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

Properties

AppDataFolder

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

AssemblyFolders

#
public static List<GH_AssemblyFolderInfo> AssemblyFolders { get; }
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.
A list of load target directories.

AutoSaveFolder

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

ClusterFolders

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

CursorFolder

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

CustomAssemblyFolders

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

DefaultAssemblyFolder

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

DefaultAssemblyFolderVersion6

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

DefaultClusterFolder

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

DefaultTemplateFolder

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

DefaultUserObjectFolder

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

Desktop

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

DownloaderApplication

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

FileViewerApplication

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

IconFolder

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

ImageStitcherApplication

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

PluginFolder

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

SDKDownloaderApplication

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

SettingsFolder

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

TemplateFolders

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

ToolsFolder

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

TutorialFiles

#
public static string[] TutorialFiles { get; }
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.

TutorialFolder

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

UserObjectFolders

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

VersionHistoryFile

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

VersionHistoryUrl

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

Methods

ShowFolderInExplorer

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