DXF data is written as pairs of group codes and values. The group code indicates the meaning of the following value, such as coordinates, layer names, or entity types. This code-based structure allows DXF files to represent complex drawing information in a structured text format.

Example: Group codes

0
LINE
8
Layer1
10
0.0
20
0.0
11
100.0
21
100.0

In this example, the group codes represent the properties of a line entity.