Skip Corrupted File

Skip Corrupted File

sjmacad
Participant Participant
459 Views
3 Replies
Message 1 of 4

Skip Corrupted File

sjmacad
Participant
Participant
I am using VB6 to open drawings. However, when it encounters a corrupted file, it displays following error:
"Run-time error '2145320823 (80210089)'
File xx_recover.dwg is corrupted and requires recovery" where xx is a file name.

The program quits after I press OK button.

Is there a way to catch the message before it is displayed so that I can skip the file and continue with the next file?

Any help will be appriciated.

--
sjm
0 Likes
460 Views
3 Replies
Replies (3)
Message 2 of 4

arcticad
Advisor
Advisor
This was discussed here
http://discussion.autodesk.com/forums/thread.jspa?threadID=658684
---------------------------



(defun botsbuildbots() (botsbuildbots))
0 Likes
Message 3 of 4

sjmacad
Participant
Participant
Thank you for the reply. I looked at the link you provided. The link talks about getting error opening any file. My situation is little different. I am trying to open all files in certain folder. If for any reason there is there is left over corrupted file from previous crash, the program cannot continue. These files generally saved with xxx_recover.dwg where xxx is the original file name. Of course I can check the file name ending with _recover. However, I am trying to avoid any other situation where corrupted file is encountered so I can skip it.

sjm
0 Likes
Message 4 of 4

arcticad
Advisor
Advisor
You could check if the drawing was successfully saved to see if the file was viable.

Post one of your drawings and I'll check it to see if my assumption works.
---------------------------



(defun botsbuildbots() (botsbuildbots))
0 Likes