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.
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.
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.
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.
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.
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.