Apparently wrong order of the group code of the entity

Bug #1099069 reported by Bert Timmerman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libDXF
Fix Committed
Low
Bert Timmerman

Bug Description

to explain better take for example the file line.c
the order of group code in a line is:
100
39 (if present)
10
20
30
11
21
31
210
220
230
but in the "dxf_line_write_lowlevel" the order is different (39 is later than 31).
I think this isn't a big problem in line entities, but for example the mtext entities (not write at the moment) have two different group code 50, the order can be very important.
It's a mistake or I just do not understand anything?

Reported by: paolo-caroni

Revision history for this message
Bert Timmerman (bert-timmerman) wrote :

Hi Paolo,

Looking at the Autodesk DXF reference manual of 2004 I see just a single group code 50 argument: rotation angle, if ommitted this defaults to 0.

There is another angle with group code 51 argument: the oblique angle, if ommitted this defaults to 0.

Group codes 50-58 are angles (output in degrees to DXF files and radians through AutoLISP and ObjectARX applications)

Another text from the manual warns against order of group codes, the only sure thing is that a group code 0 is the end of an entity.

quote

Do not write programs that rely on the order given here. The end of an entity
is indicated by the next 0 group, which begins the next entity or indicates
the end of the section.

end of quote

Kind regards,

Bert Timmerman.

Revision history for this message
Bert Timmerman (bert-timmerman) wrote :

Hi Bert,
Thank you very much for the quote, I don't see it.
However, the problem of double 50 in the mtext entities arises from the 2007 version and next release.
(for example see the new 2013 reference manual):
http://docs.autodesk.com/ACD/2013/ENU/files/GUID-5E5DB93B-F8D3-4433-ADF7-E92E250D2BAB.htm

I hope to be helpful,
kind regards,
Paolo Caroni

Revision history for this message
Bert Timmerman (bert-timmerman) wrote :

Hi Paolo,

It's about time I pick up libdxf, add more code and push commits, thanks for the wake-up call ;-)

Kind regards,

Bert Timmerman.

Changed in libdxf:
status: New → Triaged
importance: Undecided → Low
Changed in libdxf:
assignee: nobody → Bert Timmerman (bert-timmerman)
status: Triaged → In Progress
Changed in libdxf:
milestone: none → 0.0.1
Changed in libdxf:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.