i have this rhino plugin in windows (rhino 5) and would like to port it to Mac Rhino 5.4xx (latest)
At some commands in the plugin i need to access Grasshopper to issue a
gh.DisableBanner(); and gh.LoadEditor(); etc
The code is as follows but as soon as GetPluginObject is executed the RhinoPlugin exits.
I also can not access the Grasshopper.Plugin or Grasshopper.Instances. namespaces, I tried to add a reference to Grasshopper but it does not show up. The nugget package that shows up In VisualStudio for Mac lists that its only for Rhino5.
How do i get access to Grasshopper?
// Get the Grasshopper plug-in object. dynamic gh = RhinoApp.GetPlugInObject("Grasshopper"); // Load Grasshopper and open the algorithm file. gh.DisableBanner(); gh.LoadEditor(); // Disable auto saving to avoid dialogs that require use action. var s = Grasshopper.Instances.Settings; s.SetValue("AutoSave:Enable", false);