得到块定义id(通过块参照id)
bool PhdArxBlock::GetBlkDefId(AcDbObjectId& idBlkDef, const AcDbObjectId& idBlkRef) const{
AcDbObjectPointer<AcDbBlockReference> pRef(idBlkRef, AcDb::kForRead);
if (Acad::eOk != pRef.openStatus())
return false;
idBlkDef = pRef->blockTableRecord();
return true;
}
页:
[1]