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

"object was permanently erased"
"object was permanently erased"
when i load the attached drawing in our package the following error is thrown when stepping through the layouts:
"object was permanently erased".
the problem goes away if i delete all the layouts in autocad and just load the modelspace.
the problem occurs in the opendwg file dblayout.cpp in the function oddblayoutimpl* oddblayoutimpl::validatelists(...) which is called by overallvportid() in the same file and seems to occur when the line pents->step(true, false); is reached from the second layout onwards.
when reading the file in odamfcapp version 2.5.01 the file loads alright but gives the following warnings:
"dwg object improperly read. do you want to proceed ?" and on selecting "yes" you get the following warning message
"invalid input. acdbblocktablerecord(4542e). do want to proceed?".
these two messages occur at least 8 times when loading the drawing.
any ideas on how to fix or handle this?
kind regards
james fife
attached files
there are errors in the file. autocad silently ignores them, but they may cause problems later. if you recover the file in autocad you will see a lot of warnings too.
we issue a warning while loading, to allow the user to abort loading and recover the file instead (which is much safer).
in your application you may always throw exception in your oddbhostappservices::warning() overload, catch it in file loading function and call 'recover' automatically.
vladimir
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)