Autostart for grasshopper file - Grasshopper2024-03-29T07:04:46Zhttps://www.grasshopper3d.com/forum/topics/autostart-for-grasshopper-file?commentId=2985220%3AComment%3A1160654&feed=yes&xn_auth=nocharming :)tag:www.grasshopper3d.com,2017-01-19:2985220:Comment:16746872017-01-19T08:54:24.443ZAJhttps://www.grasshopper3d.com/profile/AY
<p>charming :)</p>
<p>charming :)</p> Thanks for sharing!
I found…tag:www.grasshopper3d.com,2014-12-12:2985220:Comment:11868972014-12-12T23:15:54.363ZMarco Traversohttps://www.grasshopper3d.com/profile/MarcoTraverso
<p>Thanks for sharing!</p>
<p></p>
<p>I found it very useful for automatically opening from Rhino a GH file associated with the current 3dm document.</p>
<p>Thanks for sharing!</p>
<p></p>
<p>I found it very useful for automatically opening from Rhino a GH file associated with the current 3dm document.</p> I found a solution:
First I…tag:www.grasshopper3d.com,2014-11-03:2985220:Comment:11606542014-11-03T10:10:46.681ZH Shttps://www.grasshopper3d.com/profile/HS
<p>I found a solution:</p>
<ul>
<li>First I created a RhinoScript file (Tools > Rhinoscript > edit) with the following lines to run grasshopper and load a specific grasshopper file:</li>
</ul>
<p><em>Option Explicit</em><br></br> <em>Call Main()</em><br></br> <em>Sub Main()</em><br></br> <em>Dim GH</em><br></br> <em>Set GH = Rhino.GetPlugInObject("Grasshopper")</em><br></br> <em>Call GH.DisableBanner()</em><br></br> <em>Call GH.ShowEditor()</em><br></br> <em>Call Rhino.Print("Loaded:" &…</em></p>
<p>I found a solution:</p>
<ul>
<li>First I created a RhinoScript file (Tools > Rhinoscript > edit) with the following lines to run grasshopper and load a specific grasshopper file:</li>
</ul>
<p><em>Option Explicit</em><br/> <em>Call Main()</em><br/> <em>Sub Main()</em><br/> <em>Dim GH</em><br/> <em>Set GH = Rhino.GetPlugInObject("Grasshopper")</em><br/> <em>Call GH.DisableBanner()</em><br/> <em>Call GH.ShowEditor()</em><br/> <em>Call Rhino.Print("Loaded:" & GH.IsEditorLoaded())</em><br/> <em>Call Rhino.Print("Visible:" & GH.IsEditorVisible())</em><br/> <em>Call Rhino.Print("Enabled:" & GH.IsSolverEnabled())</em><br/> <em>Call GH.OpenDocument("C:\testfile.ghx")</em><br/> <em>End Sub</em></p>
<ul>
<li>Then I set Rhino to auto run this script on startup (Tools > options > RhinoScript > new)</li>
<li>Also I put Rhino in my Windows 7 autostart folder (C:\Users\...\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup).</li>
</ul>
<p>It works perfectly: everytime I boot my computer it automatically runs Rhino, Grasshopper and the grasshopper file for the interactive installation.</p>