Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm new in QGIS and here is my problem:

I exported a DXf from QGIS by right-clicking on the layer. Then tried to open in AutoCAD 2000. That did not work. AutoCAD gave a failure-message:

Unknown Value "AC1018" found in drawingversion.

Then I tried to view the file in DWG-Truview2013 - which didn't work either giving the following error:

Invalid database handle 0 on line 1548. Invalid or incomplete DXF input -- drawing discarded.

Does anyone know a solution? Or is there anywhere in QGIS change the DXF-Version to export? Any Help will be useful. Thank you!

Regards, Frank

share|improve this question
what QGIS version are you using? – Mario Miler May 11 '15 at 12:59

Given that your autocad version is 12+ years old it may be an issue with autocad dwg or dxf file format version (major format version: You should try to open it in a newer version of ACAD, or try saving it into an older format.

share|improve this answer
Yes, its 12 years old, but i tryed to open the DXF in AutDesk TrueView 2013, a native AutoDesk viewer which shows the actual DXF-Formats. And it didn´t open the DXF created in QGIS. – Frank Oct 22 '12 at 10:37
And i´m not the only one with this problem. Please have a look at this thread: – Frank Oct 22 '12 at 10:47

Hi I have for a long time been frustrated with this aspect also and have asked several questions on them.,..only to have useless answers coming back and eventually being closed as a duplicate.

the only effective way i have found is to cave into using GRASS. Load the file into it and export as dxf. They work fine that way.

If, you are like me and, you are unfamiliar with GRASS then this tutorial helped me with the basics.

you do initially need to set up a direcotry and crs but tinker around for a short while and you will get it.

share|improve this answer

I use DoubleCAD, for which you can get a free version, to take the dxf from QGIS and resave it as DWG. Although there are many formats of DWG and your mileage may vary.

Are you dealing with lines or points?

share|improve this answer
Right now i´m downloading DoubleCAD for a test. Will post the result. I´m dealing with lines and polygons. – Frank Oct 22 '12 at 10:44
I tryed to open with double-CAD, but it failed. Also tried with free A9CAD, and it failed too .... Perhaps i´ll save it as shape and then convert the shape to dxf, but thats not satisfying. – Frank Oct 22 '12 at 10:59
Found a way. I´ve googled for freeware to convert shapes to dxf and discovered dxfAuthor: I´ve installed it. Then saved an ESRI-Shape in QGIS, opened it in dxfAuthor and saved a DXF. It was no problem to open this DXF in AutoCAD. For now this may be a solution, but i think, when QGIS offers the possibility to save a DXF, CAD-Software should be able to open it. – Frank Oct 22 '12 at 11:23
Thank you for your answer and your hint to DoubleCAD. It is surely a good software and it was worth trying. If 3 different CAD-Applications aren´t able to open the DXFs written by QGIS, i think there is a bug in the DXF-Writer of QGIS. Do you know if there is a bug-tracker? – Frank Oct 22 '12 at 14:48
The dxf conversion framework comes from GDAL/OGR. There are bug reporting/tracking systems for both QGIS and GDAL/OGR. see – Willy Oct 23 '12 at 21:46

If you want to export shape to CAD, before you export you must to select the entity and then use the export tool.

share|improve this answer

I've had issues importing dxf files into autocad when there are spaces in the layer names in the dxf file, sounds simple but it's a common problem.

share|improve this answer
This doesn't really answer the question. – John Barça Feb 15 at 18:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.