|
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(); |
|