欢迎访问《图学学报》 分享到:

图学学报

• 应用与交流 • 上一篇    下一篇

基于DWGDirect访问AutoCAD DWG图形文件

  

  • 出版日期:2010-12-31 发布日期:2015-08-12

Accessing AutoCAD DWG Graphic Files with DWGDirect

  • Online:2010-12-31 Published:2015-08-12

摘要: 文章介绍了DWG文件的数据格式和利用DWGDirect C++函数库进行接口程序开发的主要流程。DWG文件分为头部、实体部、表部、块实体部和应急头部5个部分,对各部分的存储信息给予了简要介绍。DWGDirect是开放设计联盟(Open Design Alliance)开发的函数库,可以脱离AutoCAD平台实现对DWG文件的读写操作。针对CAD/CAM应用软件,讨论了对DWG文件中加工图素的读取操作实现方法,并给出部分C++代码。

关键词: 计算机应用, DWGDirect C++, DWG文件, AutoCAD

Abstract: The data format of AutoCAD DWG files and the main steps for developing the interfaces with DWGDirect C++ Libraries are presented in the paper. DWG file consists of five parts: header, entities, tables, blocks and contingency header, and the information storage of each part is briefly given. DWGDirect, a library developed by the Open Design Alliance, can be used to read and write DWG files without AutoCAD platform. With the method, the realization of how to access part entities for a CAD/CAM software is discussed and a part of C++ codes is introduced also.

Key words: computer application, DWGDirect C++, DWG file, AutoCAD