1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
|
.. _tables_section_internals:
TABLES Section
==============
The TABLES section contains the resource tables of a DXF document.
.. toctree::
:maxdepth: 1
../tables/appid_table
../tables/block_record_table
../tables/dimstyle_table
../tables/layer_table
../tables/linetype_table
../tables/style_table
../tables/ucs_table
../tables/view_table
../tables/vport_table
The TABLES section of DXF R13 and later looks like this:
.. code-block:: none
0
SECTION
2 <<< begin TABLES section
TABLES
0 <<< first TABLE
TABLE
2 <<< name of table "LTYPE"
LTYPE
5 <<< handle of the TABLE
8
330 <<< owner handle is always "0"
0
100 <<< subclass marker
AcDbSymbolTable
70 <<< count of table entries
4 <<< do not rely on this value!
0 <<< first table entry
LTYPE
...
0 <<< second table entry
LTYPE
...
0 <<< end of TABLE
ENDTAB
0 <<< next TABLE
TABLE
2 <<< name of table "LAYER"
LAYER
5 <<< handle of the TABLE
2
330 <<< owner handle is always "0"
0
100 <<< subclass marker
AcDbSymbolTable
70 <<< count of table entries
1
0 <<< first table entry
LAYER
...
0 <<< end of TABLE
ENDTAB
0 <<< end of SECTION
ENDSEC
The TABLES section of DXF R12 and prior is a bit simpler and does not contain the
BLOCK_RECORD table. The handles in DXF R12 and prior are optional and only present if
the HEADER variable $HANDLING is 1.
.. code-block:: none
0
SECTION
2 <<< begin TABLES section
TABLES
0 <<< first TABLE
TABLE
2 <<< name of table "LTYPE"
LTYPE
5 <<< optional handle of the TABLE
8
70 <<< count of table entries
4
0 <<< first table entry
LTYPE
...
0 <<< second table entry
LTYPE
...
0 <<< end of TABLE
ENDTAB
0 <<< next TABLE
TABLE
2 <<< name of table "LAYER"
LAYER
5 <<< optional handle of the TABLE
2
70 <<< count of table entries
1
0 <<< first table entry
LAYER
...
0 <<< end of TABLE
ENDTAB
0 <<< end of SECTION
ENDSEC
|