|
Acad::ErrorStatus Status = Acad::eOk;
AcDbTextStyleTable *pTable;
char stylename[128];
strcpy(stylename,"Mytext");
Status = acdbCurDwg()->getTextStyleTable(pTable,AcDb::kForRead);
if(Status != Acad::eOk)
{
return NULL;
}
if(pTable->has(stylename)) //这种字体存在
{
pTable->getAt(stylename, objId);
pTable->close();
} |
|