Use of Karamba in standalone application

unhandled

(Corre Gregoire) #1

Hello,

I am currently developing a winForms standalone C# application in Visual Studio. I’d like to run structural analysis computations from my application by using Karamba but without running Rhino and Grasshopper.

The library karamba.dll requires the rhino library RhinoCommon.dll. As I understand it, this Rhino library can only be used from within Rhino (and I can’t import RhinoCommon.dll in my VS project). Fortunately Rhino has recently released an open source library Rhino3dmIO.dll which provides the main simple tools from RhinoCommon (like Vector3d, Point3d, Mesh, etc). I’ve therefore replaced my RhinoCommon.dll by the Rhino3dmIO.dll. But my new problem is that Karamba classes don’t seem to be usable without RhinoCommon. Indeed, I get the following kind of errors for every Rhino.Geometry classes used be any Karamba method:

The type ‘Vector3d’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘RhinoCommon, Version=5.1.30000.14, Culture=neutral, PublicKeyToken=552281e97c755530’.

Does anyone every tried to used Karamba from outside Grasshopper and faced this kind of issue?

Thank you for your help.

Greg


#2

Dear Greg,
in the next release of Karamba3D the library ‘karamba.gha’ will be split up into a part which offers an interface to the FEM functionality and does not reference RhinoCommon or Grasshopper and a second dll which communicates with GH.
Best,
Clemens