Autocad Press Enter to Continue Dxf
How to repair corrupt AutoCAD drawings and fix its errors
There are many reasons that can cause errors in your drawing but if you keep your AutoCAD drawing clean you can avoid many inadvertent errors. Most of the drawings containing errors can be repaired using some well-known tools like AUDIT and RECOVER.
There are also many drawings which can hardly be repaired by these tools. You can use some workarounds for repairing that kind of drawings using methods mentioned in this article. Let's start with the most basic methods of repairing AutoCAD drawings.
AUDIT:
This command will check for simple errors in the AutoCAD file and it will attempt to fix those errors. To use this command type AUDIT on the command line and press enter, then select Yes from the command line options or type Yes and press enter.
AutoCAD will automatically look for errors in the file and it will fix those errors. The number of errors found and repaired can be seen on the command line as shown in the image below.
If you want to see the list of errors repaired then change the value of AUDITCTL system variable to 1. An ADT file will be created in the same location where the AutoCAD file is saved and you can open this file using notepad to see the list of all errors.
RECOVER:
If AUDIT fails to fix errors in your drawing then you can try using RECOVER tool as well. You can use this tool on severely damaged AutoCAD files as well, the tool will attempt to recover as much data as possible from the drawing.
To use this command type RECOVER on the command line and press enter. Select the affected DWG, DWT or DWS file and click on open. If your drawings happen to contain errors the AutoCAD will repair those errors and open the drawing file with the minimum possible loss of data.
A message will appear with the number of errors found and repaired from the drawing as shown in the image above.
Backup file:
Whenever you save a drawing a backup file is automatically created in the same folder in which drawing is present. The backup file has BAK extension and it will be created only when the value of ISAVEBAK system variable is set to 1.
If drawing shows errors after recent system failures, crashes or bugs then you can recover the previous version of the drawing from this backup file. To recover the drawing from backup file rename it to DWG extension.
Write Block:
This option should only be used if all of the mentioned methods of drawing recovery fails to recover the drawing. Using this method you can export portions of the drawing to an external file but a lot of data like layer information, custom text styles or blocks will be lost.
To use this tool open affected drawing and type WBLOCK on the command line and press enter. Select Objects from Source panel and pick a point in the drawing then select complete drawing using a selection or crossing window.
Avoid selecting complete drawing by pressing CTRL+A as this might select zero length and unnecessary geometries from the drawing.
Specify a location to save exported drawing and click OK to export the geometries from drawing.
EXPORTTOAUTOCAD:
Many DWG compatible applications or plugins may create some custom objects which can also cause errors in the drawing. You can remove these custom objects and change them to AutoCAD compatible format.
When a drawing is opened in AutoCAD and it fails to find the application which created the custom object then it creates a proxy object which has limited capabilities compared to the original object. You can convert these proxy objects to AutoCAD supported objects using -EXPORTTOAUTOCAD command.
To use this tool open the drawing containing proxy objects and type -EXPORTTOAUTOCAD then press enter thrice. A new drawing file with ACAD prefix will be added to the same folder in which affected drawing is present.
In this drawing, all of the custom objects will be exploded to AutoCAD supported format.
Try these too:
You can also try to attach damaged drawings as XREF and then bind XREF in the current drawing. Inserting a drawing directly into another clean drawing using block import command can also recover a lot of information from the affected drawing. But these tools should only be used if you are completely unable to open the drawing using AutoCAD.
Do you have questions related to this tip? Let us know in the comments below.
30 Comments
Source: https://www.thesourcecad.com/recover-damaged-or-lost-autocad-files/
The best part of using CMS IntelliCAD was finding out it has all the CAD features I'd already worked with. I was pretty worried about finding a good fit for me, but CMS IntelliCAD is definitely unbeatable. Registered for free and had a free trial before payment, I'm glad I could test it out before any payment. CMS IntelliCAD is definitely worth the hype.
Hello Pandey, Great stuff.
I am looking for that kind of stuff and you write superb. I love to read this fully article. thanks for share this wonderful information with us.
Hello Jaiprakash
When I open (lets say) 10 drawings do my work and save it again then always there is a case that one or two files get corrupt I recover those by using backup files or recover option.
but I need to send those files to my senior collegues after work is done then they also used to complain the same problem
every time the files which were done by me only gets corrupt
from last 3-4 months I m facing the problem again and again
Is there any fix need to done in autocad or there is a problem in my pc?
please help!!
I am looking or searching for that information for a long time so thanks for sharing this meaningful information with us.
Moving .dwg files from version 2016 to 2020. W hen files are saved in 2020 the errors show up as missing line work and text.
Running Audit and recover in 2016 shows no errors
Great post, I am looking for that kind of stuff and you write superb. I love to read this fully article. thanks for share this wonderful information with us.
Hi Jai, Delete the image from the drawing and re-embed the JPEG images in AutoCAD. But this time first ensure they are opening properly in any image editor without any distortion. If not, repair your corrupt or distorted JPEG/JPG files using Stellar Repair for Photo Software, then add to the drawing. It is a repair tool that fixes all kinds of corruptions in JPEG photos including grainy, blurry, broken, or pixelated and fixes issues like corrupt headers, JPEG file data, invalid JPEG file structure, etc.
hi.
I am an Interior designer.
We face the problem when on of our system infected by virus "LALO".
All of our data corrupted. All CAD files.
We are not even convert our BAK files into DWGs.
error shows " DRAWING FILE IS NOT VALID"
Please give us solution.
Hello jaiprakash,
Thanks for sharing with us.
I am searching that kind of stuff for my project and learned a lot of new things from your blog, so thanks again.
Wonderful, I learned a lot of new things and It worked. thanks for sharing this wonderful information with us..
Hi, Mr. Jaiprakash,
We have one autocad user and he left the company but before that he Shift+Deleted the autocad file. I have recovered the file via some recovery software now all the file shows Drawing files is not valid. Even .Bak file also we tried to rename to .dwg and its shows the same. Is there any tool/software you can suggest to repair these files also we have tried to use recover command for these file but no luck. Appreciate your response on this.
Regards
Nawaz
Hi, Nawaz.
I am afraid if recover command did not work for the files that simply mean your files are corrupted beyond repair. There are some DWG repair tools available online but they are mostly paid ones and I have never tried them so can't vouch for them either, but maybe you can try them once as a last option.
Sir, can you please help me restore the autocad classic in autocad 2015? thank oyu Sir
i have a different kind of problem here, when i draw a line in autocad 2019, i give a particular dimension to it but when i try to check it again it gives me a value of 102938456.23(a random large value).
its the same with every drawing, i tried to repair and reinstall too, nothing worked so far.
any ideas of wht could have possibly gone wrong.
i am a bit new to autocad hope you could be helpful
Thanks sir Pandey! You saved my life and my job hahaha. Great advice from you.
I have searched anywhere for an answer and here you are. Im really glad to read your article.
Typing "Recover" at the command did it.
Thank you very much sir Pandey!
God Bless!! :D
Hello sir i am having very strange problems. I was working on autocad and when i open the file that file showing error that the drawing file is not valid and i try to use .bak file but that also doesn't open after rename with .dwg file. I also tried the recovery file but that also doesn't opne. During that time i opened 3-4 file and that all doesn't open and few are deleted automatically. Please help what to do?
Hello sir I have recover my acad file
Hi Jai
my cad file of 4.3 mb was not opening when i run recovery it worked but size reduced to some 350kb and some contents are also missing. However i restored the bak file and converted to dwg which is of 4.3 mb but whenver trying to open it asks to recover and comes with the same missing contents and about 450kb..
Plz help.
There is very little that can be done because the drawing is completely corrupt as you mentioned. I guess you have to make missing components again :(
I just found this article and did the RECOVER and It worked.
THANK YOU
Hi
My autocad files got deleted. Then I recovered using recovery software. After recovery when I open the file it is showing Drawing file not valid. What can I do ?
The recovery software's are not always able to recover files completely so you may find them as corrupted files after recovery. My best advice is to recover backup file (assuming its not deleted).
I CAN NOT THANK YOU ENOUGH FOR THIS INFORMATION!!!! My computer was acting up so I saved the drawing and restart. my drawing said error and had few doors and 3 walls left. I lost 60 hours of work!!! I just found this article and did the RECOVER and It worked!!!!!! I can stop panicking now and reach my dead line today!
THANK YOU!!!!!
I am glad this tip saved lots of hours of your work
Hi Jaiprakash,
I am actually facing issue while opening file and getting error message file "Drawing file is not valid".
This problem i am facing to attack my system with the virus (norvas).
All my file extensions change with the ending of .norvas. What i did is to scan my system with the antivirus and change the extension manually.
Please guide how can i fix this bug.
while working all all he drawing disappear although the cad file still have its volume
can you share the screenshot as it's very difficult to find the reason with this info.
working on a 2d file and a 3d file (different name & location). Autocad crash. After restarts auto cad there was same 3d contents in both 2d & 3d file. how is it possible. there was no sv$ file. cad crash on 2:03 pm. i was try to recover the drawing from the .bak file which was last save on 1:06 pm. but the content showin same in .bak file. what is the reason. now i have to re-draw the drawings again.
It seems like your AutoCAD Autosave time is extended or disabled. Unfortunately if drawing is not recovered using all of the methods mentioned above then you need to re-create it. But you can ensure that it keeps on saving file in future for that Save this lisp file in C:Program FilesAutodeskAutoCAD 201xSupport where 201X is the version of your AutoCAD. download file from this link https://www.dropbox.com/s/dnvvvqgt89bwo55/user%20commnet.zip?dl=1
Sometimes Autosave is disable automatically due to some scripts running in background but it fails to start again so to ensure it starts every time you start your AutoCAD application you can save the script as mentioned above, this lisp will ensure that every time AutoCAD starts it will load that file which tells AutoCAD to make an Autosave every 15 minutes.