上传者: mzbbox
|
上传时间: 2013-04-18 00:00:00
|
文件大小: 8.89MB
|
文件类型: zip
DWGdirect_NET_3_02,由于公司需求,最近也是找了好久才终于找到C#.NET读取DWG格式的CAD文件信息方法,采用 DWGdirect_NET_3_02动态库里的方法,可以完美的读到DWG文件的信息,这里分享出来,压缩文件包括了DEMO和动态库文件,DEMO可以完美运行(VS2010测试通过,添加的自测的部分注释!)
/************************************************************************/
/* This console application creates and populates DWG/DXF/DXB file of */
/* the specified version. */
/* */
/* Calling sequence: */
/* */
/* OdWriteEx [OutVer] [OutType] [-DO] */
/* */
/* OutVer can be any of ACAD12, ACAD13, ACAD14, ACAD2000, ACAD2004, */
/* ACAD2007 */
/* */
/* OutType can be any of DWG, DXF, DXB */
/* */
/* -DO disables progress meter output */
/* */
/* The following files from the Examples\OdWriteEx folder are */
/* referenced by and must either be in the same folder as */
/* or in a folder in the support path */
/* */
/* OdWriteEx.jpg, OdWriteEx.sat, OdWriteEx XRef.dwg */
/* */
/* In addition, the folder containing OdWriteEx.txt must be hard-coded */
/* in DbFiller::addRText */
/************************************************************************/
using System;
using System.Colle