I am trying to export to a dxf for laser cutting. The shape is a path. The dxf R14 LWPOLYLINE option is exporting SPLINES which is problematic for the laser.
The dxf file from LibreCad produces many small straight line segments to make up the curves in the drawing. Ideally the R14 LWPOLYLINE dxf export from Inkscape should produce curves and arcs to simplify the cutting for the laser. Why is the LWPOLYLINE export option producing SPLINES?
The R12 version contains straight line segments to make up the curves. Similar for the Moi version, but with smaller segments. Still looking for the LWPOLYLINE export to work as expected.
Taking a look at the code, I don't think R14 dxf export actually tries to convert the curve to a polyline (I think it just converts a set of linetos to a polyline). Did this work before?
Also I'm not sure if it works (unfamiliar with CAD), but it might be sufficient in simpler cases to use librecad. After exploding, you can select all and join segments into a polyline (do so repeatedly, not sure how to use the command bar)
I am trying to export to a dxf for laser cutting. The shape is a path. The dxf R14 LWPOLYLINE option is exporting SPLINES which is problematic for the laser.
I am running version 1.0 on Windows. Any ideas?
The sample files are attached.
Thanks!
ENDSEC
0
SECTION
2
ENTITIES
0
SPLINE
5
100
100
AcDbEntity
8
Layer_1
62
7
100
AcDbSpline
70
8
Can you attach the complete dxf file? That will help.
And the original svg file would help too.
A sample file and dxf have been attached!
Here's a dxf exploded in LibreCad. Give it a shot, and if it works you can download LibreCad and keep it handy for such conversions.
The dxf file from LibreCad produces many small straight line segments to make up the curves in the drawing. Ideally the R14 LWPOLYLINE dxf export from Inkscape should produce curves and arcs to simplify the cutting for the laser. Why is the LWPOLYLINE export option producing SPLINES?
Good question. You can search the buglist (all, not just open), to see if there is any chatter on the issue.
In the meantime, here's another conversion from MoI3D. Maybe this suits the task better
Here is a version directly exported from Inkscape as R12. This looks very close to the Moi3D polyline output.
The R12 version contains straight line segments to make up the curves. Similar for the Moi version, but with smaller segments. Still looking for the LWPOLYLINE export to work as expected.
I'd check with the devs and file a report. This is probably easily fixed.
Cross-referencing, @geowizard opened an issue at https://gitlab.com/inkscape/inbox/-/issues/3464
Taking a look at the code, I don't think R14 dxf export actually tries to convert the curve to a polyline (I think it just converts a set of linetos to a polyline). Did this work before?
Also I'm not sure if it works (unfamiliar with CAD), but it might be sufficient in simpler cases to use librecad. After exploding, you can select all and join segments into a polyline (do so repeatedly, not sure how to use the command bar)
Ja, there is a difference the OP is looking for with the LWpolyline... it supports arcs, etc., not just straight line segments.
Alvin and Maren may know more.