I created a cylinder (solid primitive) in Autodesk 2020 and then saved the file as Cylinder DXF. In Mathematica, I applied the command Import[“C:\ASINVAL\Cylinder.dxf”] and it didn’t work, returning the following message:
In[5]:= Import::nffil: File C:\ASINVAL\Cylinder.dxf not found during Import.
Out[5]= $Failed
Does anyone have any tips that might help?
Regards,
Sinval
Hello Rohit, thanks for your attention.
Yes, this file exists on my PC and the path is correct. I created other DXF files in the 2D version and they worked great with the Import command. I copied some 3D files that are in Mathematica documentation and they worked correctly. The ones created by me don’t work.
My experience is that Mathematica’s DXF import and export functionality is very limited. It doesn’t appear to be anywhere near comprehensive and doesn’t seem to work for many CAD objects/entities. Unless you’re working with quite basic primitives (e.g. points, lines and the like), I suspect you’ll struggle. Given that DXF is such a widely used drawing exchange format in engineering, it would be good to see some improvement.