Inkscape.org
Beyond the Basics export to dxf R14 LWPOLYLINE producing SPLINES
  1. #1
    geowizard geowizard @geowizard
    *

    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

    A Simple Drawing
    A Simple Drawing
  2. #2
    Tyler Durden Tyler Durden @TylerDurden
    *

    Can you attach the complete dxf file? That will help.

    And the original svg file would help too.

     

  3. #3
    geowizard geowizard @geowizard

    A sample file and dxf have been attached!

  4. #4
    Tyler Durden Tyler Durden @TylerDurden

    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.

    A Simple Drawing Exploded
  5. #5
    geowizard geowizard @geowizard

    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?

     

    A Simple Drawing
  6. #6
    Tyler Durden Tyler Durden @TylerDurden
    geowizard

    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

     

    A Simple Drawing Moi
  7. #7
    Tyler Durden Tyler Durden @TylerDurden

    Here is a version directly exported from Inkscape as R12. This looks very close to the Moi3D polyline output.

    A Simple Drawing R12
  8. #8
    geowizard geowizard @geowizard

    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.

  9. #9
    Tyler Durden Tyler Durden @TylerDurden

    I'd check with the devs and file a report. This is probably easily fixed.

  10. #10
    Nathan Lee Nathan Lee @ainsleo

    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)

  11. #11
    Tyler Durden Tyler Durden @TylerDurden
    *

    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.

Inkscape Inkscape.org Inkscape Forum Beyond the Basics export to dxf R14 LWPOLYLINE producing SPLINES