查看单个帖子
旧 2009-05-07, 04:44 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】ext From Oddbtexttextstring90

text from oddbtext::textstring()
text from oddbtext::textstring()
i'm using the oddbtext::textstring() to read contents of a text entity and the output is as follows:
\fsimplex.shx;\w0.7000000000;\t1.0000000000;\o\lb2 0
it should be:
b20
what am i doing wrong?
i would try this:
odstring strtipo=pent->isa()->name();
odstring stattribute=oddbattribute::desc()->name();
odstring stacdbattributedefinition=oddbattributedefinition: :desc()->name();
odstring strig;
if (strtipo==stattribute)
{
strig= ((oddbattributedefinitionptr) pent)->tag();
}
else
if (strtipo==stacdbattributedefinition)
{
strig= ((oddbattributedefinitionptr) pent)->tag();
}
else
{
strig=((oddbtextptr) pent)->textstring();
}
are you sure its oddbtext not oddbmtext?
mtext can contain special character sequences switching font, height, color etc.
sergey slezkin
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)