C# uses grasshopper's method with VS

Create grasshopper components with c# in VS
How to call grasshopper‘s base methods?

Do you mean rhino methods or node in code?

@Baris
I mean grasshopper base components that I could call using c# in VS,like rhino methods
Could you give some examples ?

There’s no easy way to do that. It’s better to call methods in RhinoCommon directly.

@gankeyu
Thanks
Python could do that ,but I love c#
Sometimes,It’s convient to call grasshopper base component like a method,but it’s impossible now

@Dani_Abalde
Thanks
Could you provide c# components wrapper library in the future, like python’s
ghpythonlib.components wrapper library
It’s very convenient to use.

You don’t need a wrapper library, just implement this namespace directly:

https://developer.rhino3d.com/api/RhinoCommon/html/N_Rhino_NodeInCode.htm

@AndersDeleuran
Thanks

1 Like