Grasshopper API
GH_DocumentAutoSave Method (GH_AutoSaveTrigger, Guid) |
Creates a new autosave file on the disk. The previous autosave file (assuming it exists)
will be temporarily renamed and eventually deleted entirely.
Note: AutoSave is only possible on Documents that have TopLevel Rank and a valid FilePath.
Namespace: Grasshopper.Kernel
Assembly: Grasshopper (in Grasshopper.dll)

public bool AutoSave( GH_AutoSaveTrigger trigger, Guid id )
Public Function AutoSave ( trigger As GH_AutoSaveTrigger, id As Guid ) As Boolean
Parameters
- trigger
- Type: Grasshopper.KernelGH_AutoSaveTrigger
Reason for autosave. User can choose to ignore certain autosave reasons. - id
- Type: SystemGuid
Guid of autosave operation, consecutive calls to autosave with the same Guid will be ignored.
Return Value
Type: Boolean