![]() |
【转帖】corrupted dwg file
corrupted dwg file
corrupted dwg file hi , is there way to detect a corrupted file before loading it to the database. the open dwg used to have a function (addwgsmellsbad) which could detect a corrupted file. i need to put a check in my codes before opening the dwg file. ( some function to check if input file is not corrupt ) pdb = svcs.readfile(odinfilename.c_str(), true, false, oda::ksharedenyno); where is no way to check if the file is corrupted without loading it. readfile() may throw exception in case of corrupted file. where is also oddbhostappservices::recoverfile() function which reads file more carefully and reports defects found while loading. if loading succeeds recoverfile() file calls oddbdatabase::audit(). sergey slezkin |
所有的时间均为北京时间。 现在的时间是 08:56 AM. |