添加扩展字典数据 我从外部加一个DWG文件到当前CAD数据库中; 作为一个块插入;我如何给这个块添加扩展字典数据呀; AcDbEntityId entId,dictId; AcDbBlockRefrence *pBlkRef=new AcDbBlockRefrence(InsertPt,blockId); pTable->GetAt(ACDB_MODEL_SPACE,pBlkTblRcd,AcDb::kForWrite); pBlkTblRcd->appendAcDbEntity(entId,pBlkRef); AcDbObject* pObj; acdbOpenObject(pObj,&entId,AcDb::kForWrite); pObj->createExtensionDictionary(); dictId=pObj->extensionDictionary(); acdbOpenObject(pDict,dictObjId,AcDb::kForWrite); pDict->setAt(GJZName,pXrec,xRecObjId); pDict->close(); //设置扩展记录的内容; pRb=acutBuildList(AcDb::kDxfText,entData,0);//类型,值; pXrec->setFromRbChain(*pRb); pXrec->close(); 各位帮帮忙吧 ; |