Header Section Implementation

A Drawing Interchange File is simply an ASCII text file with a
file type of .dxf. General information about the drawing is found in this section of the DXF file.
The HEADER section of a DXF file contains the settings of variables associated with the drawing. Each variable is specified by a 9 group code giving the variable’s name, followed by groups that supply the variable’s value. This chapter lists only the variables that are saved in the drawing file.

For an example following will be the type of contents in the header section of a dxf file. This is just a simple template for the same.

999              /*comment*/
dxflib 2.2.0.0
  0              /*beginning of the next section*/
SECTION
  2
HEADER           /*header section*/
  9              /*as of it involves group 9 codes*/
$ACADVER         /*variable associated with the group*/
  1              /*code associated with the same*/
AC1015           /*finally code values associated*/
  9
  0
ENDSEC           /*marks the end of the header section*/

Based on this I have created a file mainly involving header section of point in a 2D CAD.
Given below is the link:
https://github.com/DevinderKaur/dxf/blob/master/pointheader.txt

Leave a comment