VC++读写DXF源代码
文件大小: 349k
源码售价: 10 个金币 积分规则     积分充值
资源说明:VC++读写DXF源代码 The main reference for DXF file structure that is used for CadLib is the AutoCad's DXF reference. You can find more information about DXF file structure here. Classes The classes are interfaces between CadIO.dll and the main program. "Test" has come with CadLib to demonstrate how to generate a DXF file with CDxfFileWrite and CDrawing classes. CDxfFileWrite class CDxfFileWrite gathers all the commands needed to directly create a DXF file. Usage of CDxfFileWrite is as follows: Create the DXF file CDxfFileWrite dxffile; dxffile.Create( "d:\\test.dxf" ); Begin and end the HEADER section. It's here for compatibility with some CAD programs. Others work without having HEADER section. // Header Section ------------------------------------------ dxffile.BeginSection(SEC_HEADER); dxffile.EndSection(); // close HEADER section ------------------------------------ Begin the TABLES section and put the LAYER, LTYPE, STYLE, DIMSTYLE table-types as many as you want and then close the section Collapse // Tables Section ------------------------------------------ dxffile.BeginSection(SEC_TABLES); // LTYPE table type ------------------------- dxffile.BeginTableType(TAB_LTYPE); DXFLTYPE ltype; double elem[4]; // Continuous ZeroMemory(
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。