BIM Software Tip: How to Repair Damaged AutoCAD Files
Problem: Your AutoCAD drawing file (.dwg) may be corrupted or damaged, causing one or more of the following issues:
- Unable to open the file.
- AutoCAD hangs or crashes when opening the file.
- Reduced performance during editing or manipulation.
- Error messages when opening or working with the file.
- Commands not working properly or experiencing significant delays.
- Unexpected increase in file size.
- Display or regeneration problems.
- Missing graphic elements.
Possible Causes:
- Third-party applications running within AutoCAD.
- DWG files created or saved by non-Autodesk or non-RealDWG products.
- Crashes occurring during the save operation in AutoCAD.
- Use of outdated graphics repeatedly over the years.
- Network issues such as transmission errors, file locks, or delayed writes.
- Storage media degradation (e.g., bad sectors on hard drives).
- Faulty or insufficient RAM.
- Operating system problems.
- Power supply voltage fluctuations.
Solution: Follow these guidelines to clean, repair, and restore your drawing files.
If the .dwg file cannot be opened:
Your drawing may display error messages such as “The drawing file is not valid”, or AutoCAD may hang, crash, or fail to display the file properly.
Sometimes, you might find hidden files with the same name but with extensions .dwl or .dwl2 in the folder where your DWG resides. To view and delete these:
- Go to Windows Control Panel > Folder Options.
- Under the View tab, enable Show hidden files and folders.
- Navigate to the folder containing your DWG, then delete any corresponding
.dwlor.dwl2files.
After deleting these, try opening the DWG again.
If the file still cannot be opened, proceed with the following steps. Attempt them one by one, testing if the file opens after each step. Stop if the file opens successfully.
- Open a blank DWG and run the
RECOVERcommand, then select the damaged file. AutoCAD will try to recover and open it. - Alternatively, open a blank DWG, run the
RECOVERALLcommand, and select the problematic file. - Open a blank DWG and use the
INSERTcommand to insert the damaged file as a block. If successful, runCHECKandCLEARcommands, then useSAVEASto save a new file. - Check if there is a backup file (.BAK) in the same folder. Rename the .BAK extension to .DWG and try opening it.
- Look for temporary files in
C:WindowsTempwith names similar to your DWG but with different extensions such asSV$. Rename these to .DWG and attempt to open them. - If available, restore files from your backup system from before the corruption occurred.
If the drawing file is still open but problematic:
Perform the following steps in order:
- Open the drawing.
- Clean up registered applications by typing
-CLEARin the command line. - When prompted, type
Rto register applications, thenNto clear each name. - Use the
CLEARcommand from the command line, select all options, and click Clear All. - Verify and fix errors by typing
CHECKand then enterYto fix all. - Save the drawing.
If problems persist:
- Ensure all layers are unfrozen and unlocked.
- Remove all external references (Xrefs).
- Use
WBLOCKto write all necessary objects to a new drawing:
- Type
WBLOCKin the command line. - Select Source as Object.
- Use the selection window to pick the required objects (avoid selecting everything).
- Specify the file path and name, then confirm.
INSERT, uncheck Specify on-screen, click OK, and choose Explode.CLEAR command again with all options selected.CHECK.SAVEAS.Still encountering issues?
Try these additional Autodesk-recommended steps, testing after each:
- Open a blank DWG and run the
RESTOREcommand, then browse to your damaged file for recovery. - Run
OVERKILLon all objects to remove duplicate or overlapping entities. - Use
DELCONto delete constraints from all objects. - Use the
BOUNDARYcommand to recreate boundaries if solids or surfaces are present. - If
SCALELISTEDITsystem variable is active, reset it by typingRthen confirm withY. - Run
FILTER, then use the delete filter button to remove unwanted elements. - If the file size is unusually large, run the
DGNPURGEtool to clean it up.
If you are opening drawings across different AutoCAD versions (e.g., AutoCAD 2013 vs 2015, or regular AutoCAD vs AutoCAD Architecture), try opening the file on another computer to rule out machine-specific issues.
Try attaching the problematic file as an external reference (xref) in a blank DWG. If successful, run the repair steps above.
Use SAVEAS to save the drawing in an earlier AutoCAD file format if newer versions fail to open the file.
Export the drawing to DXF format using DXFOUT, then open a blank DWG and import the DXF back using DXFIN.
Restoring Layout Tabs:
- Right-click on a default layout tab.
- Choose From Template….
- Open the original file and select the layout tab you want to restore (recommended to restore tabs one at a time).
Moving Graphic Objects Between Model and Paper Space:
- Create a new layout and add a viewport if necessary.
- Use the
CHSPACEcommand to transfer geometric elements between model and paper space. - Create a new drawing and use Design Center to move layouts from the damaged file.
- Use
CHSPACEto move geometric primitives back to model space if needed.
Analyzing and Troubleshooting Drawings:
Perform a detailed analysis by using QSELECT on a copy of the file to select different object types, deleting them one by one and then cleaning up after each deletion. This helps identify problematic objects or data. If necessary, delete and recreate these objects from a clean file.
Removing Invisible DWG Elements:
Use the COPYWITHBASEPOINT command to transfer all relevant elements and options to a new DWG via the clipboard, ensuring all necessary layers are turned on and unlocked.














Must log in before commenting!
Sign Up