- 积分
- 455
- 明经币
- 个
- 注册时间
- 2003-4-1
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
AcDbBlockTable *pBlockTable;
acdbHostApplicationServices()->workingDatabase()->getSymbolTable(pBlockTable,AcDb::kForRead);
AcDbBlockTableRecord *pBlockTableRecord;
pBlockTable->getAt(ACDB_MODEL_SPACE,pBlockTableRecord,AcDb::kForRead);
pBlockTable->close();
AcDbBlockTableRecordIterator *pBlockIterator;
pBlockTableRecord->newIterator(pBlockIterator);
for(pBlockIterator->start();!pBlockIterator->done();pBlockIterator->step())
{
AcDbEntity *pEntity;
pBlockIterator->getEntity(pEntity,AcDb::kForWrite);
const char *pCname1=pEntity->isA()->name();
if(strcmp(pCname1,"AcDbText")==0)
{
AcDbText *pText;
acdbOpenObject(pText,pEntity->objectId(),AcDb::kForWrite);
pText->setHeight(12);
pText->setWidthFactor(0.77);
pText->close();
}
pEntity->close();
}
delete pBlockIterator;
pBlockTableRecord->close(); |
|