Currently I am doing some experimentation to add DWG support to LibreCAD. For this I an using the LibreDWG (I like Libre ) library from the gnu.org project.
There is only one slight issue, LibreDWG is released as GPLv3 or higher, while LibreCAD is released as GPLv2, and since I am not the original author of LibreCAD (remember, it’s QCad based, and that is released as GPLv2).
Lucky us, after mailing the original authors they are considering releasing LibreDWG as GPLv2 or higher which will bring us in good shape for supporting the frequently requested DWG support.
In the last couple of days, I have been fooling around with this and it seems like that will work quite well, however not every primitive and function is working yet and there is plenty of things todo, but what I have been adding went fairly smooth.
So far I am importing:
- Layers + Layer clor
The following entities including Color, Line Width and Respected layer the entity is located on.
The above entities are for me a proof of concept and proofs that adding full DWG support (what LibreDWG support) should be quite a bit of work, but I don’t expect any roadblocks for further implementation.
Now it’s waiting untill LibreDWG get’s released as GPLv2 or higher and I can push this to LibreCAD on github.
In the mean time, if you want to take a sneak peek at the current code, you can clone my github repo and checkout the dwgsupport branch. Please don’t distribute this version, just use it as a sneak peek until the licenses are settled.