几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】how to know a bad or damaged dwg file easily in dwgdirect 1 (http://www.dimcax.com/hust/showthread.php?t=16724)

yang686526 2009-05-06 02:57 PM

【转帖】how to know a bad or damaged dwg file easily in dwgdirect 1
 
how to know a bad or damaged dwg file easily in dwgdirect 1.
how to know a bad or damaged dwg file easily in dwgdirect 1.14?
we are trying to move the application from odt to dwgdirect. in odt we can use the function, addwgsmellsbad(), to decide if a dwg file is correct version, bad or damaged before it be loaded and read. in dwgdirect, is there any similar function? if not, how to implement the above function easily?
oddbhostappservices::readfile() can throw exception if the file is damaged or contains invalid data. in simple cases it may fix some minor problems and give warning.
oddbhostappservices::recoverfile() reads file more carefuly (and a bit slower). it performs more checks and tries to heal the data. it also provides diagnostics via oddbauditinfo object.
sergey slezkin


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