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

yang686526 2009-05-05 08:05 AM

【转帖】dwg parts crash in readfile90
 
dwg parts crash in readfile()
dwg parts crash in readfile()
attempting to assign the database ptr, pdb, for these attached parts results in a crash.
these parts open fine in acad. i'm running vc++ 6, dd1.11.
please see attached files for details.
thank you.
attached files
another dwg file with same problem
here's another file with same problem in my application.
attached files (75.6 kb, 8 views)

the files are invalid and autocad's recover lists the errors. autocad's open silently heals some of problems. others are reported by autocad's audit after opening the file.
dwgdirect refuses to open the files but recovers them.
sergey slezkin
quote:
originally posted by sergey slezkin
dwgdirect refuses to open the files but recovers them.
do i tell my customer's these parts are corrupt and must be recreated? what exactly do you mean by "..but recovers them."?
you can load a drawing in dd with 2 functions: readfile() and recoverfile(). readfile() works faster but may fail to load a drawing if it's corrupted. recoverfile() loads the drawing more "carefully" and performs a lot of checks. surely it can't load any invalid file but heals a lot of damaged/incorrect drawings.
odamfcapp file menu contains items open and recover.
you problem files can be healed by dd (recoverfile and writefile) or by autocad (recover and save).
sergey slezkin
thanks for the clarification.


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