Skip to content

Instantly share code, notes, and snippets.

Created August 24, 2015 06:26
What would you like to do?
Automatically open a Rhino file and Grasshopper file upon load
'Automatically open a Rhino file and Grasshopper file upon start
'Setup via File > Properties > Rhino Options > RhinoScript > Startup Scripts
Call Rhino.Command("_Open C:\Users\YourName\TheRhinoDocument.3dm")
Call Rhino.Command("_Grasshopper")
Dim GH
Set GH = Rhino.GetPlugInObject("Grasshopper")
Call GH.DisableBanner()
Call GH.ShowEditor()
Call Rhino.Print("Loaded:" & GH.IsEditorLoaded())
Call Rhino.Print("Visible:" & GH.IsEditorVisible())
Call Rhino.Print("Enabled:" & GH.IsSolverEnabled())
Call GH.OpenDocument("C:\Users\YourName\TheGrasshopperDocument.3dm")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment