1

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?

LCarvalho
  • 9,233
  • 4
  • 40
  • 96
  • 1
    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]; – Greg Hurst Apr 03 '20 at 22:58
  • @ChipHurst The problem effectively disappears in 3D – andre314 Apr 03 '20 at 23:00
  • In 2D, There is a error message : "Transpose::nmtx: The first two levels of {{10,20,30},{0.,0.}} cannot be transposed." – andre314 Apr 03 '20 at 23:01
  • ... and there is this kind of thing in the DXF file : "List(List(10,20,30),List(0.,0.))" – andre314 Apr 03 '20 at 23:02
  • I will try to do in 3d – LCarvalho Apr 03 '20 at 23:31
  • 1
    I think this method could be adopted (https://mathematica.stackexchange.com/questions/128412/strategies-for-creating-3d-text), 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. – Craig Carter Apr 07 '20 at 17:18

0 Answers0