几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】analytical bug of oddbmtextexplodefragments90 (http://www.dimcax.com/hust/showthread.php?t=15094)

yang686526 2009-05-04 03:59 PM

【转帖】analytical bug of oddbmtextexplodefragments90
 
analytical bug of oddbmtext::explodefragments().
analytical bug of oddbmtext::explodefragments().
example string : "abc\p .......... efg"
... is long space.
result.
string 1."abc"
string 2.".........."
string 3."efg"
it is resolved to three.
last edited by morichika; 17th february 2006 at 01:57 amfff">.
if this is bug or not depends on mtext box width.
if the mtext width is not enough to hold "long space" and "efg" in single line where would be 3 fragments as you described.
how your example is displayed in autocad?
sergey slezkin
sample data upload.
attached images (18.3 kb, 11 views)
(13.7 kb, 8 views)
attached files (75.1 kb, 5 views)

i tried 1.14.01, 1.13 and even 1.12. and i see in odamfcapp exactly the same results as in autocad.
different results you have are probably caused by different fonts used by autocad and dd-based application. they may have different metrics and so text in dwgdirect is displayed in 3 lines.
sergey slezkin


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