Abstract: This paper analyzes the structural differences of various elements in the DXF file, and uses the pure C++ library dxflib to develop a DXF file analysis and drawing program with Qt Creator.