高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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
|