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

yang686526 2009-05-04 03:06 PM

【转帖】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).


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