patchLibreDWG - Patches: patch #8163, dump program to allow further...


You are not allowed to post comments on this tracker with your current authentication level.

patch #8163: dump program to allow further testing

Submitter:  Felipe Castro <fefcas>
Submitted:  Sat 17 Aug 2013 01:27:39 AM UTC
Category:  None Priority:  3 - Low
Status:  Done Privacy:  Public
Assigned to:  reini_urban Open/Closed:  Closed
* Mandatory Fields

Add a New Comment (Rich Markup)

Comment Type & Canned Response:
       No canned response available


Tue 08 May 2018 04:32:46 PM UTC, comment #5: 

A generic dumper is now, as dwgread. with various formatting backend: json, dxf, dxfb, and later svg, ps, yaml.

Also the skeleton for a generic dwgwrite from various formats.

It is independent on --enable-trace, without looking at the ENV var, but at some --verbose arg, or a generic dwg->opts setting.

Reini Urban <reini_urban>
Project Administrator
Wed 25 Apr 2018 10:57:25 AM UTC, comment #4: 

Hi Felipe,
Looking back at this ancient feature.
I see the need for a special dwg dumper outside of setting LIBREDWG_TRACE=2-4
I also saw your libdwg/programs/dwg-dump

Now libredwg already has a print callback for that, there's no need for an extra dump callback. Currently we have 4 callback methods: decode, encode, print and free.

The current dumper is called programs/dwgread, which is LIBREDWG_TRACE sensitive. Without LIBREDWG_TRACE it is silent.
A --verbose/-v or --quiet/-q flag might be better suited for that.
Your dwg-dump -v options clashes with that.

For consistency we might want to call it programs/dwgprint - the name of our callback -, but that might be misleading. Or programs/dwgdump.

A good dumper should support multiple output formats:
plain text, JSON, YAML, xml.

I'll add this to a branch, and see if we can use some it. My guess is that we already have most of it.

Thanks anyway, appreciated.

Reini Urban <reini_urban>
Project Administrator
Thu 22 Aug 2013 07:24:45 PM UTC, comment #3: 

Patch 0026 fixes some missing fields in the dumped output. It contains all the changes from the 3 first patches, since it was done after the "tio -> as" commit, from the refactoring branch.

(file #28911)

Felipe Castro <fefcas>
Sun 18 Aug 2013 04:10:19 PM UTC, comment #2: 

In the sequence, patch 0024 adds dumping for the classes.

(file #28868)

Felipe Castro <fefcas>
Sun 18 Aug 2013 03:51:22 PM UTC, comment #1: 

Following the first one, patch 0023 adds dumping for the header variables.

Here I also added a function to read the dwg version code, from the user point of view. See dwg.h.

The dwg.c seems to be mangled, because I used the program 'indent' on it, sorry...

(file #28867)

Felipe Castro <fefcas>
Sat 17 Aug 2013 01:27:39 AM UTC, original submission:  

Here is a patch to add a dump program in the ./examples/ subdir, that dumps information of objects found in a DWG file to a text form. Some modifications in the ./src/ files were necessary to reuse the MACRO infrastructure of the dwg.spec file.

The modifications were made on top of the "refactoring" branch, last updated in 2013-07-30. After patching, one should regenerate the autotools files (sh

Felipe Castro <fefcas>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by reini_urban (Posted a comment)
  • -email is unavailable- added by fefcas (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.





    Follow 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-05-08 reini_urban StatusIn Progress Done
        Open/ClosedOpen Closed
    2018-04-25 reini_urban Priority7 - High 3 - Low
        StatusNone In Progress
        Assigned toNone reini_urban
    2013-08-22 fefcas Attached File- Added 0026-adding-dump-program-fixed-for-missing-fields.patch, #28911
    2013-08-18 fefcas Attached File- Added 0024-examples-Added-dumping-for-classes.patch, #28868
    2013-08-18 fefcas Attached File- Added 0023-build-examples-Added-dumping-for-header-variables.patch, #28867
    2013-08-17 fefcas Attached File- Added 0022-build-examples-Added-a-dump-program-and-some-necessa.patch, #28863

    Back to the top

    Powered by Savane 3.9