Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Convert dxf files to svg files. Supposedly works with inkscape svg files. Based on
C++ C
Latest commit c0dec47 @duckinator README ->
Failed to load latest commit information.
.gitignore Typo in .gitignore
GPL.txt Copied from + fixed
LGPL.txt Copied from + fixed
Makefile Added -Wall to makefile README ->
aci2rgb.cpp Copied from + fixed
blocks.cpp Copied from + fixed
blocks.h Copied from + fixed
dxf2svg.cpp Copied from + fixed
dxf_input.inx Copied from + fixed
entities.cpp Commented out unused variables in entities.cpp...
entities.h Copied from + fixed
entities2elements.cpp Copied from + fixed
entities2elements.h Copied from + fixed
read_dxf.cpp Missing 'return's? Really?
read_dxf.h Copied from + fixed
tables.cpp Copied from + fixed
tables.h Copied from + fixed
tables2svg_info.cpp Copied from + fixed
tables2svg_info.h Copied from + fixed
test_dxf.cpp Copied from + fixed

01 Oct 2011

I (Nick Markwell, aka @duckinator) have apparently taken over this after it being dead for 5 years. I have gotten it to compile again, and I'm starting to clean up the code a bit. I have not actually tested it.

All information from before October 01, 2011 is by Matt Squires. I have, however, reformatted it all.

27 Aug 2005

Fixed a fair number of bugs, and broken conversions. LWPOLYLINE works now, text rotation is ok but needs multiple transfomations to get it right, can read broken dxf files (w/o dxf EOF information)

26 Aug 2005

To use: I have only gotten this to work with Inkscape under linux (debian sarge). But the converter works from the commandline if you want to test it otherwise.

  1. Run make and copy dxf2svg to somewhere that is looked at by the PATH variable. Or add the current directory to your path
  2. Copy the dxf_import.inx to ../Inkscape/share/extensions
  3. Run Inkscape
  4. Click on open or import and the dxf option should be there

I have compiled and then succesfully converted dxf files to svg files with the following setups

WinXP Pro, Cygwin, g++ 3.3.3 Debian Sarge, AMD x86_64, g++ 4.0.2 RedHat(?), x86(?), g++ 3.2.3

I have weakly tried and failed to compile using Borland's free compiler bcc32 MinGW

What is supported: polylines, lines, arc, circles, blocks, text, and a little linetypes

currently not supported but I hope will be in the near future (probably after Sept 05) layers, colors, trace, splines, dimentions

If you don't have dxf files of your own, but would like to easily test some I would suggest a few places... -- look under optomechanics. There are a variety of mounts and such that are posted in dxf and pdf -- dido what I said about newfocus

Free CAD programs: Windows -- A free and not too bad CAD program for windows is CadStd Lite. It exports to dxf and has a variety of samples. Windows/Linux -- QCad is ok. It has a lot of nice features but when I used it a year ago it would import dxf files but then you couldn't edit what was imported. It is free but with a time limit. My experience is that it can be a little annoying. Because of that and others comments I didn't use their libraries for dxf reading.

Matt Squires

Something went wrong with that request. Please try again.