Hi @dale - you helped me on a previous post to import some of our legacy Inventor part file geometry into Rhino. My question now relates to the same project but now we are serving the manipulated geometry back to Users…
Our Rhino.Compute server is now successfully streaming the Rhino mesh geometry to our plugin running inside AutoCAD/Civil3D. In this image you can see the geometry (streamed as Rhino mesh objects which our plugin converts in memory to Three.js meshes) rendered in the preview window.
Once the User clicks a commit button we want the geometry to be inserted into their AutoCAD drawing.
Can you advise a strategy for converting the Rhino mesh geometry to native AutoCAD objects (Solid3d class) ? The options I am aware of are:
save meshes as .3dm file, use AutoCAD IMPORT command to import the ,3dm file.
export meshes to .dwg file, use AutoCAD INSERT command to insert the .dwg file.
Can you advise of a better solution that avoids file IO and could translate in memory from mesh to Solid3d ? Perhaps Rhino.Inside AutoCAD offers some in-memory translation methods @kike ?
If the two file IO solutions I’ve mentioned are the way to go, would IMPORT 3dm be better than EXPORT dwg - I assume OpenNURBS is much easier for autoCAD people to create an importer with than the other way around since AutoCAD may be less, urr, open! Any thoughts?
If you are having compute do the work, you may not even need to have Rhino.Inside AutoCad. You could use our stand alone Rhino3dm libraries in your AutoCAD plug-in to convert the Rhino geometry to AutoCad geometry.
Hi Steve, yes we aren’t planning to use Rhino.Inside at all - i just wondered if the guys working on that project had faced the challenge of converting in-memory from Rhino BRep to AutoCAD BRep/Solid3D in which case we could just look at their source code or pinch their methods!!
When you say “use our stand alone Rhino3dm libraries to convert the Rhino geometry to AutoCad geometry” - can you advise does Rhino3dm have methods to do this in-memory or is it file IO methods (exporting to dwg, using AutoCAD to import file) ? I’m new to Rhino so my apologies if there are well known methods that i am not aware of.