void GetAllTextStyle(std::vector<CString> &textStyle) { textStyle.clear(); AcDbTextStyleTable *pTextStyleTbl = NULL; acdbHostApplicationServices()->workingDatabase()->getSymbolTable(pTextStyleTbl, AcDb::kForRead); AcDbTextStyleTableIterator *pIt = NULL; pTextStyleTbl->newIterator(pIt); for (;!pIt->done();pIt->step()) { AcDbTextStyleTableRecord *pRcd = NULL; if (pIt->getRecord(pRcd, AcDb::kForRead) == Acad::eOk) { TCHAR *szName = NULL; pRcd->getName(szName); if (_tcslen(szName)>0) { textStyle.push_back(szName); } acutDelString(szName); pRcd->close(); } } delete pIt; pTextStyleTbl->close(); }