码迷,mamicode.com
首页 > 数据库 > 详细

获取外部图纸中的数据库

时间:2015-09-18 15:40:47      阅读:144      评论:0      收藏:0      [点我收藏+]

标签:

其中filePath是外部图纸的保存地址

ZcDbDatabase * getDataByDwg(CString filePath)
{
//定义一个数据库对象
ZcDbDatabase *pDb = NULL;
pDb = new ZcDbDatabase(ZSoft::kFalse);

Zcad::ErrorStatus es = pDb->readDwgFile(filePath);
if (Zcad::eOk != es)
{

zcutPrintf(filePath + _T("\n在当前文件中不存在!"));
delete pDb;
pDb = NULL;
return NULL;
}
return pDb;
}

获取外部图纸中的数据库

标签:

原文地址:http://www.cnblogs.com/pengjun-shanghai/p/4819180.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!