Direkt zum Hauptinhalt

DXF to SVG, SVG to DXF

DXF and SVG are commonly used file formats to describe vector data for machine production (like laser cutters or waterjet machines). An also commonly occuring problem to solve is a conversion between DXF to SVG or vice versa because a lot of programs use only the one or the other format to perform steps like nesting or line optimization. That makes it harder to work without data loss or errors like offsets, wrong scaling, etc.

DXF to SVG

Tested and working

  1. Use Inkscape with default DXF importer (works with AutoCAD DXF R13) - fails on polylines sometimes
  2. AutodeskInventorLaserExporter (works but is very limited to only basic entities)
  3. DXF/DWG Importer - includes tools like ...
  4. https://github.com/voyager-gold/javascript-dxf-to-svg → works but seems to ignore units/sizes/scalefactors
  5. https://github.com/abey79/vpype + https://github.com/tatarize/vpype-dxf

  6. http://www.calvina.de/pstoedit

    1. We can use winder/svgToDxf or Zigazou/svg2dxf to utilize pstoedit to convert the SVG first into an EPS, and from EPS to DXF finally. This toolchain could be integrated into Export Layers extension of InkScape for Example. We can also re-write Export Layers to integrate the inhouse DXF export extension from inkscape

Tested and failed

  1. https://github.com/mduggan/dxf2svg → did not compile using MSYS2 with GCC and make
  2. https://github.com/mondalaci/dxf2svg2kicad
  3. https://github.com/aegis1980/cad_to_shapely → QCAD has to be used manually because community edition has no command line

SVG to DXF

Possible ways to convert are ...