摘要
基于实际的雕刻控制平台能有效地读取CAD软件设计图形的数据参数的目的,采用了AutoCAD强大的绘图功能与C语言强有力的计算、输入和输出等功能相结合的方法。通过研究分析AutoCAD的DXF文件数据格式及组成,结合C语言的文件管理功能,设计出了C语言与AutoCAD接口程序,并给出了具体的设计方法。通过自行开发软件与AutoCAD之间建立数据通道,实现数据传递和共享(即对DXF中的实体(如直线、圆等)进行坐标提取)的实验,证明了该方法的实用性和便利性。
Based on the purpose that the actual carving control platform can effectively read the data parameters from CAD software design graphics, this paper adopts that the strong AutoCAD drawing function combines with C language powerful calculation, input and output functions. Though the research and analysis of AutoCAD DXF file data format and composition, combining with C language file management function, the C language and AutoCAD interface program is designed and the specific design method is given. The method in this paper is proved applicable and convenient by the experiment that the data channel is established between the self developed software and AutoCAD to realize data transfer and sharing(that is extracting the coordinate of the DXFentity , such as a straight line, round, etc.).
出处
《电子设计工程》
2012年第23期70-74,共5页
Electronic Design Engineering