- 积分
- 12459
- 明经币
- 个
- 注册时间
- 2003-5-28
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
发表于 2004-12-25 14:10:00
|
显示全部楼层
回复
// ----- ss._test command (do not rename) static void ss_test(void) { // Add your code for command ss._test here AcDbBlockTable* pBlockTable; acdbHostApplicationServices()->workingDatabase()->getSymbolTable(pBlockTable, AcDb::kForRead); char *strName; AcDbObjectId objId; AcDbBlockTableIterator* iter; if (pBlockTable->newIterator(iter) == Acad::eOk) { for(;!iter->done();iter->step()) { AcDbBlockTableRecord* pBlkTblRec; if (iter->getRecord(pBlkTblRec, AcDb::kForRead) == Acad::eOk) { pBlkTblRec->getName(strName); if (stricmp("*MODEL_SPACE",strName) !=0 && stricmp("*PAPER_SPACE",strName) != 0 && stricmp("*PAPER_SPACE0",strName) != 0) { acedAlert(strName); } pBlkTblRec->close(); } } } pBlockTable->close(); } |
|