请pglyxq再指教一下:
我在下列代码中加入了 pDb->wblock(pThisDb, blockId); 可仍然没有实现整个块的插入,请问哪个地方出了问题,谢谢
AcDbDatabase *pThisDb = acdbHostApplicationServices()->workingDatabase();
AcDbObjectId blockId; char blockName[20] = "MyBlock";
acdbHostApplicationServices()->workingDatabase() ->insert(blockId, blockName, pDb);
pDb->wblock(pThisDb, blockId); acdbHostApplicationServices()->workingDatabase() ->insert(AcGeMatrix3d::kIdentity, pDb); |