Hi, hope it’s okay that I piggyback on this thread, as I have exactly the same question.
We have a dll containing references to Rhino3dmIO, let’s call it
ClientLib.dll. We want to be able to use this dll without a rhino process. It basically just reads and writes rhino data.
Now we have another dll that has references to RhinoCommon, let’s call it
ServerLib.dll. This dll is used together with a Rhino process.
ServerLib.dll also references
ClientLib.dll to get access to client models/logic. In other words, it indirectly references Rhino3dmIO too.
The issue now is that rhino data produced in
ServerLib.dll can’t be passed to
ClientLib.dll, because it expects Rhino3dmIO objects. Therefore I’m looking for a way to convert RhinoCommon objects into Rhino3dmIO objects, so that the two libraries can talk to each other.
We have previously serialized the rhinocommon objects into json, and then deserialized it back into rhino3dm to achieve this, but we were hoping to find a cleaner approach with better performance, as both rhinocommon and rhino3dm are available in the process.
I hope this makes sense. Let me know if this can be achieved in some other way, or if I’m completely lost ^^
ping @stevebaer @will