![]() |
【转帖】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 |
| 所有的时间均为北京时间。 现在的时间是 05:19 AM. |