BLOCKS Section

The BLOCKS section contains all BLOCK definitions, beside the ‘normal’ reusable BLOCKS used by the INSERT entity, all layouts, as there are the model space and all paper space layouts, have at least a corresponding BLOCK definition in the BLOCKS section. The name of the model space BLOCK is *Model_Space (DXF R12: $MODEL_SPACE) and the name of the active paper space BLOCK is *Paper_Space (DXF R12: $PAPER_SPACE), the entities of these two layouts are stored in the ENTITIES section, the inactive paper space layouts are named by the scheme *Paper_Spacennnn, and the content of the inactive paper space layouts are stored in their BLOCK definition in the BLOCKS section.

The content entities of blocks are stored between the BLOCK and the ENDBKL entity.

BLOCKS section structure:

0           <<< start of a SECTION
SECTION
2           <<< start of BLOCKS section
BLOCKS
0           <<< start of 1. BLOCK definition
BLOCK
...         <<< Block content
...
0           <<< end of 1. Block definition
ENDBLK
0           <<< start of 2. BLOCK definition
BLOCK
...         <<< Block content
...
0           <<< end of 2. Block definition
ENDBLK
0           <<< end of BLOCKS section
ENDSEC