Grasshopper

algorithmic modeling for Rhino

Reference Custom Rhino Plugin (rhp) from within Custom Grasshopper Component

I'm trying to extend a custom Rhino plugin, by building a suite of grasshopper components in .NET. I want to access commands from the .rhp from within my code. I've tried using Rhino.RhinoApp.GetPlugInObject, but it's kicking back errors. I assume others have traversed this before?

Could someone possibly share process or a snippet of code that brings the .rhp into .NET, so that I can access the library?

Cheers,

TS

Views: 870

Replies to This Discussion

What errors are you getting?

My code:

protected override void SolveInstance(IGH_DataAccess DA)
{
Rhino.RhinoApp.GetPlugInObject("pluginName");
}

The error I'm getting back in VS:

GetPlugInObject The name 'GetPlugInObject' does not exist in the current context

My error appears to be likely fundamental, but I'm not familiar enough to resolve it. GetPlugInObject indeed does not exist in the Rhino.RhinoApp namespace I have loaded. However, when I edit/compile my code, it autocompletes and doesnt show any errors. Any idea why this might be?

I don't know if there was ever a time when that method wasn't available. Is it possible you're referencing a different RhinoCommon.dll than you're running against?

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service