jack1975 发表于 2003-4-22 11:54:00

[求助]文字类的编辑

请问:
    我写了一些文字实体,现在想改变他们的对齐方式,用下面的方法实现对吗?我调试过,文字没有出现在屏幕上,

    …………
   AcDbText *text;
   text=new AcDbText(pos,str,AcDbObjectId::kNull,fontheight*scale,0);
   text->adjustAlignment(acdbHostApplicationServices()->workingDatabase());
   text->upgradeOpen();
   text->setVerticalMode(AcDb::kTextVertMid);
   text->setHorizontalMode(AcDb::kTextMid);
   AcDbObjectId objId=add_to_db(text);
   text->close();

   …………

goldenshin 发表于 2003-4-22 15:08:00

你没有将文字加入图形中

jack1975 发表于 2003-4-23 14:18:00

ok

the problem is resolved, i forgot set the text's position
thank you
页: [1]
查看完整版本: [求助]文字类的编辑