Grasshopper API
GH_RhinoScriptInterfaceCloseDocument Method |
Close the currently active Grasshopper document.
If there is not active document, nothing will happen.
Namespace: Grasshopper.Plugin
Assembly: Grasshopper (in Grasshopper.dll)
VBScript
Call GrasshopperExampleScript() Sub GrasshopperExampleScript() Dim GH Set GH = Rhino.GetPlugInObject("Grasshopper") Call GH.CloseDocument() Set GH = Nothing End Sub