CGCADGuide.tools
CAD Performance Tuning Wizard

Regapp Drawing registration application slimming script generator

Solve the problem of inexplicable increase in the size of CAD drawings, Viewport panning stuck nemesis. Custom generated silent cleaning Regapp Rubbish AutoLISP plugin, And get a one-click fully automatic scanning and batch cleaning script for multiple images.

Clean up configuration items

Purge Optimization Options

Registered Application (Regapp) Drawing Cleaning Simulation

Live Cleaning & Compression Simulator

Set initial drawing size (MB)48 MB

Usually from external software such as Revit Synergy, Tianzheng, Southern CASS) exported DWG Drawings accumulate thousands of useless `Regapp` dictionary aliases, As a result, the file becomes huge inexplicably and the image freezes.

🗑️
Tip: real DWG Run this in AutoCAD LISP After scripting, the volume shrinkage is 70%-95% between, depending on Regapp Bloat ratio.

Script code preview area

You can directly copy and paste the code into the CAD command line to execute

;; =========================================================================
;; AutoLISP dwg optimization script
;; Generated by CADGuide.tools
;; -------------------------------------------------------------------------
;; 💡 Instructions for use: After loading, enter on the command line CleanDwg Press Enter to start drawing cleanup. 
;; =========================================================================

(defun c:CleanDwg (/)
  (setvar "CMDECHO" 0)
  (princ "\n[CADGuide] Begin cleaning up drawing database and redundant registered application aliases...")
  
  ;; Core drawing slimming: delete all registered applications without prompting (Regapp)
  (command "-PURGE" "R" "*" "N")
  
  ;; Clean up all unused blocks, dimension styles, multiline style, line style, Text styles and layers, etc
  (command "-PURGE" "A" "*" "N")
  
  (setvar "CMDECHO" 1)
  (princ "\n[CADGuide] The drawings have been optimized and completely eliminated Regapp with invalid block data! ")
  (princ)
)

CAD Registered application (Regapp) bloated in-depth science popularization and geek guide

CAD Regapp Registry Bloat & Professional Troubleshooting Guide

1. What is Regapp spam?

`Regapp` (Registered Application) Is used by AutoCAD to identify external application extended entity data (Xdata) the underlying registry. When you use 3D BIM Software map, may contain complex Tianzheng, When drawing a 3D entity plug-in, a large number of registered application records will be written to the bottom layer of the drawing.. Even if the plug-in has been uninstalled, these dictionary data will still be**Inherited from generation to generation and split into each associated external reference (Xref) or copied geometry**, resulting in meaningless self-inflation of drawings.

2. Normal PURGE and silent command line PURGE

Double-click to open the cleanup file in the CAD interface (PURGE) By default, the dialog box will not be cleaned. Regapp **! And if multiple pictures are run in batches, Ordinary PURGE commands will pop up to interrupt processing.. Therefore, you must use the minus sign command `-PURGE` on the command line to select `R` (Registered Applications) and specify the name `*` (representing all) and select `N` (without verifying one by one), Only in this way can the registry junk be cleared silently and without any hindrance.

3. SCR Batch unattended cleanup workflow

When you have hundreds of drawings on hand that need to be purified, use `.scr` Scripts are the wisest choice. You can double-click the batch program we provide to automatically generate a drawing instruction list. Then start AutoCAD and just type `SCRIPT` Start the `batch_clean.scr` file just generated, CAD It will automatically open the image in the background and inject it LISP Clear Regapp Junk, Save and close until all tasks are completed, Completely free your hands.