[求助]文字类的编辑
请问:我写了一些文字实体,现在想改变他们的对齐方式,用下面的方法实现对吗?我调试过,文字没有出现在屏幕上,
…………
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();
…………
你没有将文字加入图形中
ok
the problem is resolved, i forgot set the text's positionthank you
页:
[1]