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
)
Public Function IndexOfAutoSave (
autoSavePath As String
) As Integer
Parameters
- autoSavePath
- Type: SystemString
The full path (directory, filename and extension) of the autosave file to test against.
Return Value
Type:
Int32The index of the document that matches the given autosave path or -1 if no document match is found.
See Also