Hello Everyone,
I am developing software that will external access my Rhino and Grasshopper project using the C# Console Application. I want to use RhinoCommon API classes and methods in this software. How can I use it?
In addition, I have installed RhinoCommon.dll in this software and when I want to use the libraries there, I get the error “System.DllNotFoundException: Could not load 'DLL ‘rhcommon_c’: The specified module could not be found”'. How can I solve this problem?
Program_C#.txt (1.2 KB)
Thanks for your help.
Hello
if the program is not executing inside Rhino or Grasshopper you don’t have access to this API
So today I tried setting up unit test project for our plugin. I immediately got this exception:
System.DllNotFoundException: Unable to load DLL ‘rhcommon_c’: The specified module could not be found.
I know executable of rhino sort of loads rhcommon_c for runtime, but I really don’t understand this limitation. Isn’t Rhinocommon open sourced now? For unit tests I really don’t want to start up rhino and do weird things with the project. Unit testing needs to be fast and go hand in hand with devel…
so you must use another dll that has less function
before it was Rhino3dmIO
And now Rhino3DM
Hi there!
I am writing a unit testing suite for a project that uses RhinoCommon (because it will live inside a Rhino app). For the tests, I started using FileIO to load some test geometry from a file, ran into errors, and @stevebaer 's post pointed me to the Rhino3dmIO project, which is working great so far.
However, NuGet says the project is deprecated? And also, it worries me that the tests might be using a different RhinoCommon version that the one that will be available in the target.
Wha…
stevebaer
(Steve Baer)
September 23, 2022, 7:35pm
3
For external access, you might want to use Rhino.Inside
Here is a basic sample
Thank you your reply. I solved the problem with rhino.inside