Today’s Rhino WIP contains a new version of the “Import 3dm” component. The old “Import 3dm” component still exists and should behave exactly the same as it always has, it just has an “old” icon.
The new Import 3dm component now creates a headless RhinoDoc and outputs referenced geometry that references back to the headless doc. This allows for using the components like “Object Details” to pull other information off of the referenced geometry.
The component is creating a headless RhinoDoc under the hood and then reading a file into this doc. What this also allows is the use of most of Rhino’s file import plug-ins for reading. The new component supports the following file formats:
- 3dm, 3ds, 3mf, amf, dwg, dxf, e57, gts, igs, iv, fbx, lwo, m, obj, off, pdf, pts, ply, raw, scn, skp, slc, sldprt, sldasm, stp, stl, svg, vda, vrml, gdf, x, zpr
This required some minor changes to our file import plug-ins so they wouldn’t ask for further input parameters when they are reading into a headless document. This should also be useful for developers working with compute or scripting the reading of files into a doc as you can now just write code that would look like
var doc = RhinoDoc.CreateHeadless(null); doc.Import(pathToFile);