What does BATPURGE do?
BATPURGE cleans multiple DWG files in a single batch without requiring each drawing to be opened manually. It can remove unnecessary drawing data such as unused blocks, layers, linetypes, dimension styles and text styles. This makes the command particularly useful when maintaining large project folders containing many drawings that need regular clean-up.
How to use the command
- Type
BATPURGE, then press Enter. - Choose Add Files to select individual DWG files or Add Folder to add drawings from an entire directory.
- Enable the option to include subfolders when drawings inside nested directories should also be processed.
- Select the files in the list that you want to clean.
- Choose the required clean-up options and start the batch purge.
- Review the log after processing to check the result for each drawing.
Command: BATPURGE ↵
DWG Batch Purge: Add Folder
Include subfolders: enable if required
File list: select drawings
Purge options: choose items to clean
Batch Purge: Start
Key BATPURGE options
The batch purge interface controls which drawings are processed and what unnecessary data is removed.
Practical example: clean an entire project folder
Suppose an architectural project contains 80 DWG files distributed across several folders. Instead of opening every drawing and running PURGE individually, start BATPURGE and add the main project directory. Enable subfolders, select the required drawings and start the clean-up. GstarCAD processes the selected files without opening them individually, removing eligible unnecessary data and making large drawing sets much easier to maintain.
Tip
Use PURGE when cleaning a single open drawing and BATPURGE when many DWG files need the same maintenance. For project archives or large drawing libraries, batch processing can save considerable time.
Important
BATPURGE does not process read-only drawing files. Review the batch log after the operation to identify files that were skipped or could not be cleaned.