查看单个帖子
旧 2009-05-06, 07:57 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)