Optimizing the AutoCAD drawing file: Purge, Audit & Recover
AutoCAD or AutoCAD vertical (.DWG) file corruption can be seen through one or more of the following symptoms:
- File will open with errors
- File hangs or crashes AutoCAD
- Slow performance when editing and manipulating the file
- Error messages when working in the file
- Commands do not work or there is considerable delay in operation
- Unexplained file size increases
- Display/ Regen problems
- Drawing elements missing or shown incorrectly
- Third-party applications running inside AutoCAD
- DWG files created or saved by non-Autodesk or non-RealDWG products
- AutoCAD terminated while saving the drawing
- Old drawings used repeatedly over long time periods
- Network anomalies (transmission errors, file locking, latent writing of data)
- Storage media degradation (bad sectors on a hard drive)
- AUDIT (Command) - Evaluates the integrity of a drawing and corrects some errors.
- RECOVER (Command) - Repairs and then opens a damaged drawing file.
- PURGE (Command) - Removes unused items, such as block definitions and layers, from the drawing.
Method 1:
- Open the drawing file
- Audit and fix any errors:
- Type AUDIT at the command line
- "Y" for Yes to fix any errors, then Enter
- Remove unused named objects from the drawing:
- Type PURGE at the command line.
- Enable all checkboxes checked on
- click Purge All
- Purge Registered Applications (from the command line):
- Type -PURGE
- "R" for Regapps (registered applications), then Enter
- "*" , then press Enter (the asterisk equates to All)
- "N" when asked to verify each name to be purged, then Enter
- Save the drawing
Both steps 3 and 4 can be executed from command line. For step 3 use "All" to purge all entities.
Command: -PURGE
Enter type of unused objects to purge [Blocks/DEtailviewstyles/Dimstyles/Groups/LAyers/LTypes/MAterials/MUltileaderstyles/Plotstyles/SHapes/textSTyles/Mlinestyles/SEctionviewstyles/Tablestyles/Visualstyles/Regapps/Zero-length geometry/Empty text objects/Orphaned data/All]: A
Enter name(s) to purge <*>:
Verify each name to be purged? [Yes/No] <Y>: N
Enter type of unused objects to purge [Blocks/DEtailviewstyles/Dimstyles/Groups/LAyers/LTypes/MAterials/MUltileaderstyles/Plotstyles/SHapes/textSTyles/Mlinestyles/SEctionviewstyles/Tablestyles/Visualstyles/Regapps/Zero-length geometry/Empty text objects/Orphaned data/All]: A
Enter name(s) to purge <*>:
Verify each name to be purged? [Yes/No] <Y>: N
Repeat the command:
Command: -PURGE
Enter type of unused objects to purge [Blocks/DEtailviewstyles/Dimstyles/Groups/LAyers/LTypes/MAterials/MUltileaderstyles/Plotstyles/SHapes/textSTyles/Mlinestyles/SEctionviewstyles/Tablestyles/Visualstyles/Regapps/Zero-length geometry/Empty text objects/Orphaned data/All]: R
Enter name(s) to purge <*>:
Verify each name to be purged? [Yes/No] <Y>:
Enter type of unused objects to purge [Blocks/DEtailviewstyles/Dimstyles/Groups/LAyers/LTypes/MAterials/MUltileaderstyles/Plotstyles/SHapes/textSTyles/Mlinestyles/SEctionviewstyles/Tablestyles/Visualstyles/Regapps/Zero-length geometry/Empty text objects/Orphaned data/All]: R
Enter name(s) to purge <*>:
Verify each name to be purged? [Yes/No] <Y>:
Method 2:
For AutoCAD 2012 and later versions, the PURGE and RECOVER command can be performed simultaneously by using the DWGCONVERT utility. This utility can also be used to batch perform these procedures on many drawings at the same time.
- Close the drawing file
- Recover and fix any errors:
- Type Recover at the command line
- In the Select File dialog, select the problematic file
- Once error checking is complete the drawing will open
Note:
- Depending on the amount of errors checked, it's good practice to use SAVEAS, renaming the drawing and keeping a copy of the original file. Then closing the file and run Recover again on the newly saved file.
- When working with a host drawing file and it's referenced files, use the RECOVERALL command to error check the references.
- Remove unused named objects from the drawing:
- Type PURGE at the command line.
- Enable all checkboxes checked on
- click Purge All
- Purge Registered Applications (from the command line):
- Type -PURGE
- "R" for Regapps (registered applications), then Enter
- "*" , then press Enter (the asterisk equates to All)
- "N" when asked to verify each name to be purged, then Enter
- Save the drawing
For AutoCAD 2012 and later versions, the PURGE and RECOVER command can be performed simultaneously by using the DWGCONVERT utility. This utility can also be used to batch perform these procedures on many drawings at the same time.
- To launch the DWG Convert utility, either:
- With any drawing open, enter the DWGCONVERT command.
- With no drawings open, click on the application menu and select DWG Convert.
- In the DWG Convert window, click on Conversion Setups.
- Click New and enter a name for the Conversion setup.
- Optionally, select a Conversion setup other than Standard from the drop-down list to base the new Conversion setup upon.
- In the Modify Conversion Setup window, select the Check and fix errors and Purge drawings options.
- Set other conversion options as needed.
- Click OK and then Close.
- Load files to cleanup by either:
- Clicking on the Add file icon and browsing to the files.
- Dragging-and-dropping the files from Windows Explorer to the Files tree area.
- Select the newly created Conversion setup from the right-hand box.
- Click on Convert and follow additional instructions as applicable, depending on the Conversion setup settings.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home