查看单个帖子
旧 2009-05-06, 02:57 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)