I am trying to extract curves from an AutoCAD file but am running into an issue with Empty Lists. I have an example of a Linked and Imported CAD file in my Revit document. I am trying to pull a single CAD layer (J-Floor) which I can see in Revit, CAD.LayerNames shows it, but it does not show in CAD.LayerNamesInUse nor can I exctract the curves via CAD.CurvesFromCADLayers
Hi @Benjamin_Doty1 the problem is caused by the elements in your DWG; they import as meshes which means the CurveFromCADLayers node has nothing to convert. In theory, it’s possible to extract the boundaries of a mesh, however the last time I looked at this there was no simple way to know which vertices we’re connected by an edge (which can then be converted to a Proto curve) and which vertices were unrelated and not connected by an edge - like what results in your file as a consequence of the separated profiles - so meshes remain unsupported by the node.
The simplest solution is to either explode your polygons in AutoCad before linking/importing the DWG into Revit or convert them to polylines, both of which should convert without issue. 3D lines are supported too, but only within the limits of the Autodesk ShapeManager (so non-planar curves are flattened to the plane for example).
Thanks for the alternative solution @Kulkul
I’m aware it’s possible - I was speaking specifically about limitations of meshes extracted from DWGs in the Revit API context, where such a solution isn’t possible (no mesh toolkit)!