On 24 June 2011 06:52, .Org.Com <[email protected]> wrote:
> On Fri, Jun 24, 2011 at 2:54 AM, Till Heuschmann
> <[email protected]> wrote:
>>
>> The version of the DWG file you can determine by opening the file in a text
>> editor and looking at the first characters.
>> If the version is greater than "AC1015" than the file format is newer than
>> 2000 and libredwg will probably fail.
>
> @ Davinder
>
> Use head commnad
>
> head -n 1 YourDWG_FIle.dwg
> AC1018
>
> It will throw something like AC1018 and some garbage. If numeric part
> (i.e 1018) is  >1015, that mean that .dwg file is not supported by
> current version of library libreDWG.
Sir most of the files are not supported by current version because its
numeric values is greater than 1015.But one thing i want to ask, i
have one file which is supported by current libredwg, but whenever i
tried to convert it to svg format it again gives some segmentation
fault with lots of section parameters.What is that?
The output of that command is attached with this e-mail.
>
> Solution is ask author of file to save it in lower version using
> AutoCAD or DraftSight :-(
Sure sir.
>
> @ All
>
> Will next version of libreDWG be ale to support it.

>
> --
> H.S.Rai
> .Org.Com
>
>



-- 
http://davinder.in
Dont hurt the web, use open standards
hanuman@hanuman-Vostro-A840:~/Desktop/libredwg/examples$ ./testSVG 
ACAD_example_DWG2007.dwg > davinder.svg

=== System Section (Pages Map) ===

--- Page ---
size:    0x400
id:      0x15
offset:  0x480


--- Page ---
size:    0x400
id:      0x16
offset:  0x880


--- Page ---
size:    0x120
id:      0x3
offset:  0xc80


--- Page ---
size:    0x420
id:      0x4
offset:  0xda0


--- Page ---
size:    0x320
id:      0x5
offset:  0x11c0


--- Page ---
size:    0x520
id:      0x6
offset:  0x14e0


--- Page ---
size:    0x320
id:      0x7
offset:  0x1a00


--- Page ---
size:    0x100
id:      0x8
offset:  0x1d20


--- Page ---
size:    0x61a0
id:      0x9
offset:  0x1e20


--- Page ---
size:    0x100
id:      0xa
offset:  0x7fc0


--- Page ---
size:    0x100
id:      0xb
offset:  0x80c0


--- Page ---
size:    0x500
id:      0xc
offset:  0x81c0


--- Page ---
size:    0x27e0
id:      0xd
offset:  0x86c0


--- Page ---
size:    0x2ee0
id:      0xe
offset:  0xaea0


--- Page ---
size:    0x100
id:      0xf
offset:  0xdd80


--- Page ---
size:    0x300
id:      0x10
offset:  0xde80


--- Page ---
size:    0x1200
id:      0x11
offset:  0xe180


--- Page ---
size:    0x1200
id:      0x12
offset:  0xf380


=== System Section (Section Map) ===

--- Section ---
data size:     674
max size:      768
encryption:    2
hashcode:      6c4205ca
name length:   34
unknown:       0
encoding:      1
num pages:     1
Section name:  AcDb:FileDepList

   --- Page ---
   offset:        0
   size:          768
   id:            7
   uncomp_size:   674
   comp_size:     674
   checksum:      676f0966
   crc:           d482cd12b5561a89


--- Section ---
data size:     1262
max size:      1280
encryption:    0
hashcode:      96de0737
name length:   40
unknown:       0
encoding:      1
num pages:     1
Section name:  AcDb:AppInfoHistory

   --- Page ---
   offset:        0
   size:          1280
   id:            6
   uncomp_size:   1262
   comp_size:     1262
   checksum:      b73fb739
   crc:           1e606c95d05efe22


--- Section ---
data size:     656
max size:      768
encryption:    0
hashcode:      3fa0043e
name length:   26
unknown:       0
encoding:      1
num pages:     1
Section name:  AcDb:AppInfo

   --- Page ---
   offset:        0
   size:          768
   id:            5
   uncomp_size:   656
   comp_size:     656
   checksum:      9da755f3
   crc:           4d0fa13448d181ab


--- Section ---
data size:     126
max size:      1024
encryption:    0
hashcode:      40aa0473
name length:   26
unknown:       0
encoding:      1
num pages:     1
Section name:  AcDb:Preview

   --- Page ---
   offset:        0
   size:          1024
   id:            4
   uncomp_size:   126
   comp_size:     126
   checksum:      dd8726b0
   crc:           51d684000545f7a6


--- Section ---
data size:     150
max size:      256
encryption:    0
hashcode:      717a060f
name length:   34
unknown:       0
encoding:      1
num pages:     1
Section name:  AcDb:SummaryInfo

   --- Page ---
   offset:        0
   size:          256
   id:            3
   uncomp_size:   150
   comp_size:     150
   checksum:      38a68851
   crc:           80c90b7bcd28842f


--- Section ---
data size:     16
max size:      4096
encryption:    0
hashcode:      60a205b3
name length:   32
unknown:       0
encoding:      4
num pages:     1
Section name:  AcDb:RevHistory

   --- Page ---
   offset:        0
   size:          3712
   id:            8
   uncomp_size:   16
   comp_size:     10
   checksum:      ea4fde94
   crc:           22503377bf3ded13


--- Section ---
data size:     59918
max size:      63488
encryption:    0
hashcode:      674c05a9
name length:   34
unknown:       0
encoding:      4
num pages:     1
Section name:  AcDb:AcDbObjects

   --- Page ---
   offset:        0
   size:          64512
   id:            9
   uncomp_size:   59918
   comp_size:     24499
   checksum:      23b64562
   crc:           7daac2c0952ef0fe


--- Section ---
data size:     53
max size:      63488
encryption:    0
hashcode:      77e2061f
name length:   36
unknown:       0
encoding:      4
num pages:     1
Section name:  AcDb:ObjFreeSpace

   --- Page ---
   offset:        0
   size:          69376
   id:            10
   uncomp_size:   53
   comp_size:     40
   checksum:      9875b97f
   crc:           3dd0cdb0ca347560


--- Section ---
data size:     6
max size:      1024
encryption:    0
hashcode:      4a1404ce
name length:   28
unknown:       0
encoding:      4
num pages:     1
Section name:  AcDb:Template

   --- Page ---
   offset:        0
   size:          1152
   id:            11
   uncomp_size:   6
   comp_size:     6
   checksum:      487536b3
   crc:           6742121188ba9609


--- Section ---
data size:     1443
max size:      63488
encryption:    0
hashcode:      3f6e0450
name length:   26
unknown:       0
encoding:      4
num pages:     1
Section name:  AcDb:Handles

   --- Page ---
   offset:        0
   size:          63488
   id:            12
   uncomp_size:   1443
   comp_size:     1154
   checksum:      12756f90
   crc:           505da6cd4752883c


--- Section ---
data size:     114189
max size:      63488
encryption:    0
hashcode:      3f54045f
name length:   26
unknown:       0
encoding:      4
num pages:     2
Section name:  AcDb:Classes

   --- Page ---
   offset:        0
   size:          66560
   id:            14
   uncomp_size:   66560
   comp_size:     11792
   checksum:      f2b87e12
   crc:           c1d15ece4a4deed9


   --- Page ---
   offset:        66560
   size:          62592
   id:            13
   uncomp_size:   47629
   comp_size:     9917
   checksum:      d2420e36
   crc:           29c9040e83efad2


--- Section ---
data size:     123
max size:      2048
encryption:    0
hashcode:      54f0050a
name length:   30
unknown:       0
encoding:      4
num pages:     1
Section name:  AcDb:AuxHeader

   --- Page ---
   offset:        0
   size:          2048
   id:            15
   uncomp_size:   123
   comp_size:     67
   checksum:      e406540d
   crc:           8aadee0abc8449f3


--- Section ---
data size:     860
max size:      2048
encryption:    0
hashcode:      32b803d9
name length:   24
unknown:       0
encoding:      4
num pages:     1
Section name:  AcDb:Header

   --- Page ---
   offset:        0
   size:          1920
   id:            16
   uncomp_size:   860
   comp_size:     732
   checksum:      da2f60b
   crc:           254955b7aa93cbab


--- Section ---
data size:     0
max size:      63488
encryption:    0
hashcode:      0
name length:   0
unknown:       0
encoding:      4
num pages:     0
Segmentation fault
Author-Davinder Kumar

Reply via email to