Grasshopper

algorithmic modeling for Rhino

GH 0.9.76 "OpenDocument" Behavior with Respect to Editor Visibility

Hello!

In GH version 0.9.75, one could use the GH_RhinoScriptInterface.LoadEditor() method to load the GH Plugin without showing the editor. Subsequent calls to GH_RhinoScriptInterface.OpenDocument(string filename) would allow the document to be opened without the editor becoming visible.

In GH version 0.9.76, GH_RhinoScriptInterface.LoadEditor() works as expected, but subsequent calls to GH_RhinoScriptInterface.OpenDocument(string filename) makes the editor visible.

Of course, calling GH_RhinoScriptInterface.HideEditor() any time after a document is opened results in the editor becoming hidden again, but I would prefer not to see the editor at all.

Is there any way to programmatically open a document without showing the editor? Refer to the code sample below for clarity.

//C#

GH_RhinoScriptInterface GHInterface = (GH_RhinoScriptInterface)RhinoApp.GetPlugInObject("Grasshopper");

GHInterface.LoadEditor();

GHInterface.OpenDocument("filename");

//In 0.9.75, the editor is still hidden at this point. In 0.9.76, the editor is shown.

Thanks!

Tom

Views: 340

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service