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

a dwg file problem
a dwg file problem
hi forum,
you will find attached to this thread debugu.dwg which is correctly loaded by autocad 2004. however, when i try to load it in odamfcappdll, i have got a "dwg object improperly read" message. i use dwgdirect 1.14.1.0.
i thank you in advance for your investigation.
best regards.
attached files
hi,
dwg contains 2 invalid ole objects. dd skips them and fires warnings, acad just silently skip them. you are free to ignore dd's warnings.
no warning but exception instead
when i try try to load this dwg file in odamfcappdll the oddbhostappservices::readfile method throws an exception.
so i cannot get the oddbdatabaseptr which should be returned by readfile !
how can you load this file ?
sorry, i checked it in current 1.14 version where crash was fixed to fire warnings.
in 1.14.1.0 file can be loaded by dd in recover mode (odamfcappdll->file->recover).
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)