Click or drag to resize

GH_DocumentServerIndexOfAutoSave Method

Gets the document index that is associated with the specified autosave location.

Namespace:  Grasshopper.Kernel
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
public int IndexOfAutoSave(
	string autoSavePath
)

Parameters

autoSavePath
Type: SystemString
The full path (directory, filename and extension) of the autosave file to test against.

Return Value

Type: Int32
The index of the document that matches the given autosave path or -1 if no document match is found.
See Also