Grasshopper API
GH_RhinoScriptInterfaceSaveDocumentAs Method |
Save the currently active Grasshopper document in a specific location.
If there is no active document, nothing will happen.
Namespace: Grasshopper.Plugin
Assembly: Grasshopper (in Grasshopper.dll)
public bool SaveDocumentAs( string filename )
Public Function SaveDocumentAs ( filename As String ) As Boolean
Parameters
- filename
- Type: SystemString
Path of file to save to (must be a *.gh or *ghx extension).
Return Value
Type: BooleanTrue on success, false on failure.
VBScript
Call GrasshopperExampleScript() Sub GrasshopperExampleScript() Dim GH Set GH = Rhino.GetPlugInObject("Grasshopper") Call GH.SaveDocumentAs("C:\GrasshopperBackup\[" & Hour(Now()) & "][" & Minute(Now()) & "][" & Second(Now()) & "].ghx") Set GH = Nothing End Sub