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

bug in oddbtext::verticalmode()?
bug in oddbtext::verticalmode()?
i have a text in a dwg-file which is of the alignment "middle" (5th entry in the autocad2006 dropdown-list for alignment modes).
in autocad, this text is centered vertically and horizontally relative to the alignment point.
when this file is imported with dwgdirect, the oddbtext object gives a horizontal alignment of oddb::ktextmid (ok),
but a vertical alignment of oddb::ktextbase!
shouldn't the vertical alignment be oddb::ktextvertmid in this case?
i also read this thread:
this is not a bug. alignment is defined by 2 values (dxf 72 - horizontal alignment and dxf 73 - vertical alignment) but the meaning of these values is a bit weird. for example: if first value is 4 and second 0 it means "middle". actually the result is the same as if first value is 1 (center) and second is 2 (middle).
i don't know why it was designed so in autocad. probably because vertical alignment was introduced a bit later than horizontal. and initially the single value (dxf 72) was responsible for both horizontal an vertical alignment.
sergey slezkin

quote:
originally posted by sergey slezkin
this is not a bug. alignment is defined by 2 values (dxf 72 - horizontal alignment and dxf 73 - vertical alignment) but the meaning of these values is a bit weird. for example: if first value is 4 and second 0 it means "middle". actually the result is the same as if first value is 1 (center) and second is 2 (middle).
...
that makes it clear, thank you very much!
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)