|
发表于 2002-8-2 18:02:00
|
显示全部楼层
AcDbTextStyleTable *pTextStyleTable;
acdbHostApplicationServices()->workingDatabase()
->getSymbolTable(pTextStyleTable, AcDb::kForWrite);
AcDbTextStyleTableRecord *pTextStyleTableRecord =
new AcDbTextStyleTableRecord;
pTextStyleTableRecord->setName("机械制图1");
// pTextStyleTableRecord->setFont("宋体",0,0,134,2);
pTextStyleTableRecord->setFont("仿宋_GB2312",FALSE,FALSE,134,49);
pTextStyleTableRecord->setXScale(0.67);
AcDbObjectId Id;
pTextStyleTable->add(Id,pTextStyleTableRecord);
pTextStyleTable->close();
pTextStyleTableRecord->close();
return Id; |
|