HI I am trying to automate Rhino and Grasshoper through COM, following the example in https://github.com/dalefugier/SampleCsAutomation .
I try to load grasshopper
string pluginId = “b45a29b1-4343-4035-989e-044e8580d9cf”; //this is the grasshopper GUID
plugin = rhino.GetPlugInObject(pluginId, pluginId); // rhino is a COM object representing a rhino5 instance
plugin.OpenDocument(“D:\MANUEL\Desktop\debugging.gh”);
when running the OpenDocument method a window pops up with the following message
Grasshopper breakpoint
Invalid parsing operation inn GH_DigitNumber.Value
Running equivalent code in the RhinoPythonEditor works well.
Please note that “plugin” in the code is an instance of “GH_RhinoScriptInterface” from the graashopper API.
Thanks.
Manuel