通过acdbblockreference 获得块名

 

     AcDbBlockReference *pBlkRef = AcDbBlockReference::cast(ent.object());
     AcDbObjectId pBlkTblRecId;
     pBlkTblRecId = pBlkRef->blockTableRecord();
     AcDbBlockTableRecord *pBlkTblRec;

     es = acdbOpenObject(pBlkTblRec, pBlkTblRecId, AcDb::kForRead);

posted @ 2016-05-10 11:21  xzh1993  阅读(1563)  评论(0编辑  收藏  举报