Page 1 of 1

Can't open this file.

Posted: Sat Aug 03, 2013 5:18 pm
by chroma
I've been considering switching to the new QCad from LibreCAD, but I noticed that it doesn't open certain kinds of files.

Attached is a file generated by the Java Ycad library. QCad 3.1.6 for Linux refuses to open this file. LibreCAD and the old (2.x) QCad seem to be able to read this file just fine. Is there a setting I can change to read this file correctly?

Re: Can't open this file.

Posted: Sat Aug 03, 2013 5:31 pm
by andrew
You can open this file as follows:

- File - Open
- Switch "Files of type: " to "DXF Files (dxflib) (*.dxf)"
- Select the file and click OK

The explanation for this behavior is that QCAD uses the Teigha libraries by default to open DXF / DWG files. Teigha is rather strict about the syntax of DXF files and rejects them if they are invalid. dxflib on the other hand always attempts to import as much data as possible, even if a DXF file is corrupt or obviously incomplete.