> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.smino.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Why couldn't my DWG file be processed?

# Optimizing and Repairing Corrupted DWG Files

When working with DWG files in AutoCAD, problems may arise if a file becomes corrupted or can no longer be opened in the smino Viewer.

Possible causes of DWG file corruption include:
-Third-party applications running within AutoCAD
- DWG files created or saved by non-Autodesk products
- Interruptions while saving the file in AutoCAD
- Old drawings that have been in use for extended periods of time
If you encounter a problem, there are steps you can take to optimize and recover the file.

## Optimizing and Repairing DWG Files in AutoCAD:

Step-by-Step Guide to Repairing Corrupted DWG Files
1. Open the drawing file
Open the corrupted DWG file in AutoCAD. Even if it is corrupted, you can use the built-in tools to repair the file.

2. Check for and Fix Errors
Use the AUDIT command to detect and fix errors in the drawing.

Type AUDIT in the command line and press Enter.
When the prompt “Fix any errors detected? [Yes/No]” appears, type Y for Yes and press Enter.
This checks the drawing for errors and fixes them if possible. For more information on the AUDIT command, see [[here.](https://help.autodesk.com/view/ACD/2022/ENU/?guid=GUID-62DDB935-61B1-49DA-8238-3EF1CC45259B)] (https://help.autodesk.com/view/ACD/2022/ENU/?guid=GUID-62DDB935-61B1-49DA-8238-3EF1CC45259B)

3. Removing Unused Objects
Over time, unnecessary data accumulates in DWG files (e.g., block definitions, layers, line types). This can lead to problems. Use the PURGE command to remove these objects.

Type PURGE at the command line and press Enter.
Type A to select all object types for purging, and press Enter.
Type * and press Enter to delete all unused objects.
When prompted, “Verify each name to be purged? [Yes/No],” type N for No.
For more information on PURGE, click here.

4. Clean up registered applications
Registered applications (RegApps) can also cause corruption. Clean them up using -PURGE:

Type -PURGE at the command line and press Enter.
Type R for RegApps and press Enter.
Type * and press Enter.
When prompted with “Verify each name to be purged?”, enter N for No.
5. Remove duplicate geometry
Use the OVERKILL command to remove duplicate or overlapping geometry:

Type OVERKILL at the command line and press Enter.
Select the entire drawing.
Right-click and confirm with “OK” in the dialog box.
For more information on the OVERKILL command, click here.

6. Save the drawing
Save the drawing after completing the steps above. This will save the corrected and optimized file.

7. Upload the file to the smino platform
Upload the optimized version of the DWG file to the smino platform so it can be used in the viewer.

These steps should restore and optimize your corrupted DWG file. To prevent future corruption, it is recommended that you regularly clean up and check your drawings. If these steps do not resolve the issue, contact us for further assistance or restore an earlier backup of the file.

You can find more information [here](https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/Optimizing-the-AutoCAD-drawing-file-Purge-Audit-Recover.html).

Note: In the link provided, you can change the language to display the commands in German.