- 积分
- 362
- 明经币
- 个
- 注册时间
- 2003-10-31
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
打开图纸时的问题(layout)
Acad::ErrorStatus readDwgFile(char* currentRootFolder,char* tempFolder,const char* fileName)
{
char* fullfileName=new char[MAX_PATH];
sprintf(fullfileName,"%s%s\\%s",currentRootFolder,tempFolder,fileName);
AcDbDatabase* pCurDb;
Acad::ErrorStatus es;
AcDbDatabase* pDb = new AcDbDatabase(Adesk::kFalse);
es=pDb->readDwgFile(fullfileName);
if(es!=Acad::eOk)
{
acutPrintf("\n The %c file was not found. ",fullfileName);
delete pDb;
return es;
}
pCurDb = acdbHostApplicationServices()->workingDatabase();
AcDbObjectId blockId;
char *blockName = "tempBlock";
if(pCurDb->insert(blockId,"tempBlock",pDb,true)!=Acad::eOk)
{
delete pCurDb;
}
delete pDb;
return es;
}
上面代码不能打开图纸空间的信息。
我要打开附件中的那个图纸中的所有信息到当前打开dwg文件中。(当前是一个新建的dwg文件)
要怎么改写我的代码? 还有就是要得到当前的标注样式。 |
|