2

I would like to extract the coordinates (latitude, longitude) and some properties like name and colour of Autocad files. I may do this from a Java program.

From Autocad, which is the right format to export to so I can programmatically parse the file, look for objects and get their properties? (coordinates, name, colour...)

I know Autocad DWG format is a propietary binary file that changes its format every 3 years, so I need to find a file format to export to that allow me to read it easily.

Thanks!

Hectoret
  • 3,553
  • 13
  • 49
  • 56

2 Answers2

6

DXF is what you're looking for. It's a documented format for drawing exchange in plain text.

http://images.autodesk.com/adsk/files/acad_dxf0.pdf

Maxence
  • 12,868
  • 5
  • 57
  • 69
0

DXF is definitely the best format if you're not using a vertical product like Civil or Map. Some vertical products can also export SHP/SHX (shape) files.

Here's references for DXF: http://en.wikipedia.org/wiki/AutoCAD_DXF, http://images.autodesk.com/adsk/files/acad_dxf0.pdf

Here's a SHP reference: http://en.wikipedia.org/wiki/Shapefile

Miiir
  • 731
  • 1
  • 9
  • 12