Skip to content

Instantly share code, notes, and snippets.

@philipbelesky
Created August 24, 2015 06:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philipbelesky/89b70b2e11339b198586 to your computer and use it in GitHub Desktop.
Save philipbelesky/89b70b2e11339b198586 to your computer and use it in GitHub Desktop.
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