I Need 2D DXF Files

February 5, 2010 · Filed Under MeshCAM Development 

The title says it all.  I’m adding some features that will require the loading of 2D DXF files and I need to get an assortment to be able to test my code.  All CAD programs tend to do things a little differently and DXF files are really a pain in my experience as a CAD user.  Ideally, I would like the following:

  1. A small file with some lines, arcs, circles, and maybe a freeform curve.
  2. The files should only have a few entities so I can debug it manually if I have to.
  3. The curves should be converted to polylines on save.
  4. Please name with file something based on the name of the CAD program and the settings used to generate it.  For instance rhino4-acad2004polylines.dxf if it were from Rhino with the “Autocad 2004 Polylines” save option.

You can send them to me or post them in the DXF thread in the Development forum.

Thanks in advance.

Comments

One Response to “I Need 2D DXF Files”

  1. Gerry on February 7th, 2010 5:33 am

    3) I don’t think that most 2D CAD programs give you that option. AutoCAD allows you to convert entities to polylines, but not during the export.

    I’d recommend supporting polylines, lines, arcs, and circles only. But you should plan on having to join entities on import, because, as I said, I don’t think a lot of CAD packages give the option to join. But, I could be wrong.

    One thing you should do is recommend v12 dxf or older. The v12 .dxf format does NOT support splines and elliptical arcs, so they are automatically converted to polylines.