Grasshopper API
GH_RhinoScriptInterfaceOpenDocument Method |
Open a Grasshopper document.
The editor will be loaded if necessary,
but it will not be automatically shown.
Namespace: Grasshopper.Plugin
Assembly: Grasshopper (in Grasshopper.dll)
public bool OpenDocument( string filename )
Public Function OpenDocument ( filename As String ) As Boolean
Parameters
- filename
- Type: SystemString
Path of file to open (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.OpenDocument("C:\ExampleFile.ghx") Set GH = Nothing End Sub