Hello,
I am currently trying to write a component with c# and I need to use external plugins like Kangaroo, Parakeet and Heteroptera. I would like to ask, can and how do I use them in C#.
Thanks in advance.
Hello,
I am currently trying to write a component with c# and I need to use external plugins like Kangaroo, Parakeet and Heteroptera. I would like to ask, can and how do I use them in C#.
Thanks in advance.
For Kangaroo you can reference the KangarooSolver.dll and then use the methods to create goals, run solver steps etc. There are some examples of this here:
Thanks for quick reply.
So, a dll can be used for kangaroo.Then I assume I will need to have dlls for using other ones, too?
Additionally, can I use default components of grasshopper from C# without any additional dlls?
Sorry for trivial questions but I could not find a documentation that I can read from about these.
Technically you can reference any unprotected library (dll/gha), and you can call any member directly (if public) or indirectly over Reflection. You’ll just need to find out how, which is different for any library involved. Without decompilation this is almost impossible in case there is no documentation.
Furthermore it is likely that you are not allowed to ship them with your plug-in. So you need to make sure that the user always installs the right dependency. This can be very tricky. So the best is just the become independent from as many libraries as possible, ideally you reimplement the wheel.
Thanks for the replies. I cannot choose multiple solutions but every reply in this thread is helpful in one way or another.