I’m working in Visual Studio and am trying to write a simple export function taking advantage of Rhino.Inside.Revit’s Convert Methods. However, this ends in a problem.
We end up wanting to do something like this eventually
We get a problem where Rhino.Geometry.GeometryBase belongs to the Rhino3dm.dll and it keeps mentioning it can’t find the dll. Eventually, because I am doing this without Rhino being open, I will need to use the Rhino3dm as a reference right? If so - how do I convert it?
As I only get the message, which in this case, isnt very helpful.
'cannot convert from ‘System.Collections.Generic.IEnumerable<Rhino.Geometry.GeometryBase>’ to ‘System.Collections.Generic.IEnumerable<Rhino.Geometry.GeometryBase>’
Don’t have an answer to your question, but I am trying to explore something similar. Do you know if there is any documentation available for RhinoInside.Revit.Convert? I have been referring to this but its very surface level: Rhino.Inside®.Revit
Rhino.Inside.Revit uses RhinoCommon, so you need to reference RhinoCommon Geometry classes from your project as well to interact with the conversion methods Rhino.Inside.Revit provides.
The message you receive is confusing because even the types are named the same way are defined in two different assemblies.
I get that. I am wondering how to cast between these two types. From the documentation i understand that the rhinocommons assembly will only work within a rhino app, something i am trying to bypass, so i need to get it in the Rhino3dm assembly form.
Both Dll have different use cases.
Rhino3dm is meant to be used when you have no access to RhinoCommon and is a subset of it to do just IO on 3DM files.
Since Rhino.Inside.Revit RhinoCommon assembly loads and runs inside Revit well.
In fact the conversion routines are calling RhinoCommon in Revit and need Rhino to be loaded inside Revit to work.
So if you just reference RhinoCommon instead of Rhino3dm from your project what you are trying should work.