Page 1 of 1

Import DWG files

Posted: Tue Apr 29, 2008 9:42 pm
by matbech
How do I import DWG files in qcad using Debian? Any ideas?

Posted: Wed Apr 30, 2008 3:18 pm
by andrew

Posted: Thu Aug 12, 2010 3:48 pm
by wookey
The problem with dwg2dxf is that it needs the non-free OpenDWG library which you need to buy from OpenDWG.

Reading DWG files has been declared a high-priority GNU project and a library called libreDWG is coming along nicely. This library can already turn quite complex DWG files into SVGs, and seems to work for the DWG files I got from my Architect.

However this is of course of limited use to QCAD users as we can't import or export SVG either.

I have no idea if newer QCAD releases plan to use libreDWG? I would very much like to take a look at adding support for it, but am short of time and no expert in either codebase.

Is upstream already looking at this and is anyone else interested in this?

I intend to package libreDWG for Debian which will be a start, and hopefully software like QCAD will start to use it.

Posted: Thu Aug 12, 2010 3:54 pm
by andrew
dwg2dxf (now called "ODA Teigha File Converter") is a free utility for Windows/wine that already contains all necessary libraries.

QCAD 3 will also use the same OpenDesign libraries to add DWG read/write capabilities.

Posted: Thu Aug 12, 2010 5:45 pm
by wookey
OK, glad to hear that there is progress on this as not having DWG access is pretty limiting these days, as I'm sure you are aware.
However the Open Design Alliance libraries are not freely redistributable, (unless the licencing has changed recently), nor are the libraries themselves available for download for individuals. As a Linux user I can read the spec or download a windows utility. This doesn't help write free software CAD applications at all.

If QCAD uses these libraries then it will cease to be freely redistributable in Debian, as it would then depend on non-free software. Now you have a business to run and having taken out an ODA licence I guess using those libraries makes sense for you. I assume they are rather more mature than libreDWG is?

However for the free version it would be much better to use the libreDWG libraries even if they aren't quite as good yet, as then QCAD remains free software that can be built and run on all architectures, and distributed by Debian and its derivatives.

I don't know if it is easy to keep this option of using the alternative library open or if that introduces complexity to the codebase that you don't wish to support? Hopefully the API of the two libraries is not too dissimilar. Having no access to the ODA libs I have no way of knowing.

Have you looked into libreDWG yet? I have found the responsiveness of the authors to be remarkable and they are eager to have test cases that don't yet work right. http://www.gnu.org/software/libredwg/

I'm sure they would be extremely grateful for any insight/feedback you could provide as someone with great experience in this area, and being pretty much the exact person they are hoping is their userbase :-)

Posted: Thu Aug 12, 2010 8:42 pm
by andrew
QCAD 3 can also be built without the OpenDesign libraries as they are only required by the DXF/DWG import / export filters, so a future community edition of QCAD could have no DWG support or use an alternative library indeed.

Posted: Thu Feb 17, 2011 12:36 am
by matbech
New Teigha™ Viewer and Teigha™ File Converter from www.opendesign.com works very well with debian and wine. Waiting for libreDWG...