1
$\begingroup$

I created a spline to be exported to the DXf extension:

pts = {{0, 0}, {1, 1}, {2, -1}, {5, 1}};
g = Graphics[{BezierCurve[pts]}]
Export["C:\\Users\\Leandro\\Desktop\\Arquivo.dxf", g]

I have applications to open the generated file, but my system informs me that it cannot be opened by these applications because it contains a flaw. Is there a parameter that needs to be inserted in my code?

$\endgroup$
6
  • 1
    $\begingroup$ Does it work for you in 3D? pts = Append[0] /@ {{0, 0}, {1, 1}, {2, -1}, {5, 1}}; g = Graphics3D[{BezierCurve[pts]}]; Export["model.dxf", g]; $\endgroup$
    – Greg Hurst
    Commented Apr 3, 2020 at 22:58
  • $\begingroup$ @ChipHurst The problem effectively disappears in 3D $\endgroup$
    – andre314
    Commented Apr 3, 2020 at 23:00
  • $\begingroup$ In 2D, There is a error message : "Transpose::nmtx: The first two levels of {{10,20,30},{0.,0.}} cannot be transposed." $\endgroup$
    – andre314
    Commented Apr 3, 2020 at 23:01
  • $\begingroup$ ... and there is this kind of thing in the DXF file : "List(List(10,20,30),List(0.,0.))" $\endgroup$
    – andre314
    Commented Apr 3, 2020 at 23:02
  • 1
    $\begingroup$ I think this method could be adopted (mathematica.stackexchange.com/questions/128412/…), I started down that path for FilledCurve to .dxf, but never finished. The idea is to extrude the curve by epsilon in the out of plane direction. $\endgroup$ Commented Apr 7, 2020 at 17:18

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.