wblockCloneObjects从块定义写块到外部文件简单例子
AcDbObjectIdArray objIds;
ads_name ent;
ads_point pt;
if (RTNORM != acedEntSel(_T("\n选择一个块参照对象:"),ent,pt))
{
acutPrintf(_T("\n未选择有效对象!"));
return;
}
AcDbObjectId objId;
acdbGetObjectId(objId,ent);
AcDbObjectPointer<AcDbBlockReference> pBlkRef(objId,AcDb::kForRead);
if (Acad::eOk != pBlkRef.openStatus())
{
acutPrintf(_T("\n未选择块参照对象!"));
return;
}
AcDbObjectId blkId=pBlkRef->blockTableRecord();
AcDbBlockTableRecordPointer pBlkDef