关于块的插入点问题
知道一个块的名字,怎么获取该块的插入点呢? AcDbBlockTable *pBlockTable;es=pDb->getSymbolTable(pBlockTable, AcDb::kForRead);
AcDbObjectId blockId;
str="GCTB01C";
es=pBlockTable->getAt(str,blockId1);
pBlockTable->close();
AcDbBlockReference *pBlkRef1 = new AcDbBlockReference;
es=pBlkRef1->setBlockTableRecord(blockId1);//指向blockId;
pt=pBlkRef1->position();
pBlkRef1->close();
这么做怎么获取不了呢 永远的朋友 发表于 2012-6-20 11:03 static/image/common/back.gif
AcDbBlockTable *pBlockTable;
es=pDb->getSymbolTable(pBlockTable, AcDb::kForRead);
AcDbObjectId b ...
拙见,没写代码测试,获取id后,通过acdbopenacdbentity打开实体,然后获取实体信息。
页:
[1]