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

yang686526 2009-05-06 07:57 PM

【转帖】oddbmtexttextheight crash in dd2.05.01
 
oddbmtext::textheight crash in dd2.05.01
oddbmtext::textheight crash in dd2.05.01
i found the case where oddbmtext::textheight method crashes.
* i use version dd2.05.01(vc8 debug).
* this error occurs in odreadex.exe(vc8 debug).
the place where the error occurs is shown in the following.
exprotocolextension.cpp 1131, "writeline(indent, dd_t("height"), tostring(pmtext->textheight()));"
( error message --> "dwgdairect error: not that kind of class")
the phenomenon can be confirmed with attached dwg.(mtext-anntation.dwg)
i examined the condition that an error occurred.
1.annotaive has been added to oddbmtext.
2.the problem occurs because of the order of registering anntationscale of oddbmtext.
(it is a relation between anntationscale of the model space and anntationscale of oddbmtext.)
-----------------------
example...
cannoscale anntationscale [1:1]
oddbmtext anntationscale [1:10][1:1][1:50] <--ng(corresponding scale is registered besides the top.)
oddbmtext anntationscale [1:1][1:10][1:50] <--ok(it is registered at the top.)
oddbmtext anntationscale [1:10][1:50]    <--ok(corresponding scale is unregistered.)
if there are any solutions, please let me know.
attached files


所有的时间均为北京时间。 现在的时间是 12:02 PM.