-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Entities 18(0x12) #4
Comments
@leshasoft Good catch, thanks. I believe that "2 bytes - length" isn't true. |
Nice example to identify what these 2 bytes means is: |
Perhaps the size of the entity, the calculation of offsets is the same. 0x6cf + 0x000a = 0x6d9 You can add huge extended data to the POLYLINE and see how those 2 bytes change. |
@leshasoft sorry, yes, this is the size of this entity. Data are fitting precisely. The only thing is unknown data, which are long sometimes. |
I also noticed that the unknown data is part of the data of the target entity starting from 11 byte. |
@leshasoft I applied some changes related to this entity. I don't know what unknown data mean still. In AC1009 last two bytes are CRC16 |
I still don’t understand the purpose of unknown data either, I tend version to the junk data. |
Important is to look to saved PL2.DWG in R11. This is result of cleanup with jump entities. This is case with polyline only. There are probably another cases (like ROZA.DWG, which you send me). |
Ok, thanks. I couldn't open in R10 still. Maybe could help ROZA.DWG saved in R11 (after JUMP cleanup) |
It is strange that drawing in AutoCAD 10 does not open for you. |
Ad not opening in R10) This could be because of emulation. Not important now. Ad jumps) If I correctly understand the concept is like this:
|
Sorry, been busy. The concept is correct, only there is one clarification the jump can be inside extra section. |
correct I cannot compute the correct crc16 in the case when there are unknown data. Do you know what data are in the calculation? I tested 2 bytes on the end and 2 bytes after 10 bytes, but not correct. |
The only thing I found is that 9 and 10 bytes is the crc16 of the first 8 bytes, regardless of the presence of unknown data. |
In the case where there is unknown data, the last two bytes are not CRC16. |
Thanks. This probably means, that unknown data are random data, not used. Because outside of CRC16 |
PL2_NoErr.DWG.gz PL2.DWG files with modified Entities
|
@leshasoft I understand, thanks Same no error when i changed last two bytes. |
Entities 18(0x12) is magical entities, a pointer to other entities (POLYLINE, INSERT, TEXT, Another Entities 18(0x12) ).
1 byte - kind
1 byte - entities property
2 bytes - length
3 bytes - if flag 0x80 offset in Extra Entities Table, if the flag is 0x0 then address Entities section
1 byte - flag
2 bytes - crc16
(optional, variable) - unknown data
The text was updated successfully, but these errors were encountered: