tags:

views:

849

answers:

6

Does anyone know of source code, ideally in C# or similar, for reading .DXF files (as used by AutoCAD etc)? If not code, then tables showing the various codes (elements / blocks / etc) and their meanings?

I am writing a reader myself, and have dead tree documentation detailing the format, but am trying to avoid writing e.g. a converter from each of the 255 ACI colours to RGB... Thanks!

+3  A: 

Fortunately AutoCAD publish the DXF format information here: DXF Formats

Lazarus
+2  A: 

You may want to try the Open Design Alliance. It's a while since I looked at it myself, but they had a load of C libraries for dealing with various AutoCAD files.

robertc
A: 

Here is a link to a CodeProject dxf reader; it seems very limited (and not particularly well done) though.

Joel in Gö
A: 

Here is another open source dxf reader, in Java. Buggy however!

Joel in Gö
+1  A: 

Cadlib2.0 from WoutWare have I been using for a couple of projects with good results.

sBENdk
+3  A: 
elou