- 积分
- 635
- 明经币
- 个
- 注册时间
- 2002-9-6
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
楼主 |
发表于 2004-11-21 22:45:00
|
显示全部楼层
好象不行啊?
AcDbDatabase *pDb = new AcDbDatabase(); AcDbBlockTable *pBtbl; pDb->getSymbolTable(pBtbl, AcDb::kForRead); AcDbBlockTableRecord *pBtblRcd; pBtbl->getAt(ACDB_MODEL_SPACE, pBtblRcd, AcDb::kForWrite); pBtbl->close();
AcDbDatabase *pNewDb =new AcDbDatabase(Adesk::kFalse); int es=pNewDb->readDwgFile(sFileName); if (es!=Acad::eOk) { acutPrintf("\nThe file %s cannot be opend",sFileName); return; } AcDbObjectId id ; pDb->insert (id,"myfile", pNewDb , Adesk::kFalse) ; delete pNewDb ; pBtblRcd->close(); pDb->saveAs(DwgName); delete pDb; |
|