AcDbDatabase* pDatabase = new AcDbDatabase; pDatabase->readDwgFile(sDrawingPath, _SH_DENYRW, false);
//sDrawingPath为 数据库的地址,有了外部数据库 就可以获得块表属性等然后添加各种实体
pDatabase->saveAs(sDrawingPath); delete pDatabase; pDatabase = NULL;