RhinoCommon API
FileSettingsAddSearchPath Method |
Adds a new imagePath to Rhino's search imagePath list.
See "Options Files settings" in the Rhino help file for more details.
Namespace: Rhino.ApplicationSettings
Assembly: RhinoCommon (in RhinoCommon.dll)

public static int AddSearchPath( string folder, int index )
Public Shared Function AddSearchPath ( folder As String, index As Integer ) As Integer
Parameters
- folder
- Type: SystemString
[in] The valid folder, or imagePath, to add. - index
- Type: SystemInt32
[in] A zero-based position index in the search imagePath list to insert the string. If -1, the imagePath will be appended to the end of the list.
Return Value
Type: Int32The index where the item was inserted if success.
-1 on failure.

Rhino for Mac
Supported in: 5.4Rhino for Windows
Supported in: 6.14