Automatically open a Rhino file and Grasshopper file upon load
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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