几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】bug in oddbtextverticalmode90 (http://www.dimcax.com/hust/showthread.php?t=15286)

yang686526 2009-05-04 05:05 PM

【转帖】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!


所有的时间均为北京时间。 现在的时间是 05:08 AM.