Apparently wrong order of the group code of the entity
Bug #1099069 reported by
Bert Timmerman
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_
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
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.
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.