Message 1 of 3
something wrong with AcdbDatabase::readDWGFile
Not applicable
05-27-2012
08:34 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
AcDbDatabase *pDb = new AcDbDatabase(Adesk::kFalse);
if ( Acad::eOk == pDb->readDwgFile(szBlockPath) )
{
acdbHostApplicationServices()->workingDatabase()->insert(blockId, szBlockName, pDb, false);
}
delete pDb;
"szBlockPath" is the absolute path of a dwg File. I run the code above in an arx aplication. after this, the dwg file of "szBlockPath" can't be opened again in the cad, the error msg says it has been opened . I want to know whether the code above has lost some code for releasing the dwg from the cad main process memory.