OpenStreetMap logo OpenStreetMap

Working on libredwg

Posted by h4ck3rm1k3 on 6 гыйнвар 2010 in English.

The libredwg is the reader tool for reading dwg files.
http://www.gnu.org/software/libredwg/

I have a patch for it to make it c++
https://savannah.gnu.org/patch/index.php?7057

am going to fix it to work with the dwg files I have.

And now I am working on getting this tool to run the dwg files

Here are my tests:
https://savannah.gnu.org/bugs/?28504
https://savannah.gnu.org/bugs/?28503

https://savannah.gnu.org/bugs/?28502
for that file, you can find the dxf here :
http://www.openstreetmap.pl/balrog/Planimetria_de_Vitoria.zip

So we have the input and the output, maybe that will help.

here is my patch :
https://savannah.gnu.org/patch/?7057

mike

Email icon Bluesky Icon Facebook Icon LinkedIn Icon Mastodon Icon Telegram Icon X Icon

Discussion

Comment from h4ck3rm1k3 on 7 гыйнвар 2010 сәгать 14:26

Does anyone have any test cases in DWG format? We need to collect very many for development of the software.
mike

Comment from h4ck3rm1k3 on 7 гыйнвар 2010 сәгать 17:33

Hi all,

I am just starting to work on the libredwg project that can read DWG without the restrictions of the "open design thing" that means you can download it and use it.

The DWG format is a jealousy guarded binary format that changes with every release of Autocad.
http://en.wikipedia.org/wiki/.dwg

Unfortunately we are missing a specification of all the formats, and most importantly, a test case. I guess the spec from OpenDesign is good, but I heard it was buggy. Also Is it complete? I want to have test data to work with that I can understand.

The GNU project has declared creating an Autocad reader is high priority project.

My plan is follows :

1. create a set of files to use as test case.
Reuse existing test suites for SVG, Blender and other tools. I have posted links to them on the other mails that I reference at the bottom.

2. convert those test cases into DWG and DXF files and to SVG/pdf so we can understand them.

3. do that in batch for each version of autocad.

Given a large body of tests cases, inputs and outputs, it should be easier to work on the decoding of this data.

See also :
http://mail.python.org/pipermail/pythoncad/2010-January/000974.html
http://lists.gnu.org/archive/html/libredwg/2010-01/msg00013.html
osm.org/user/h4ck3rm1k3/diary/9160

Comment from Rallaz on 10 сентябрь 2010 сәгать 07:05

If you want more dwg files, in this web you can get many:
http://www.cben.net/

Керү to leave a comment