Skip to content

Frequently Asked Questions

Will this app work on AutoCAD LT ? No

⚠️ AutoCAD LT Limitations

AutoCAD LT does not support any API features (including controlling drawings and databases with ActiveX, VBS, AutoLISP, Visual LISP, ObjectARX, JavaScript, and .NET).

Consequently, this application will not function on AutoCAD LT.

App Installed Location 📁

  • The application files are installed to the following directory:

App Location

C:\Users\Username\AppData\Roaming\Autodesk\ApplicationPlugins\AVVADwgPurge.bundle

How to load the app manually ?

If you cannot run the commands or do not see the tool in the AutoCAD ribbon after installation, please try loading it manually:

App Folder

  1. In the AutoCAD command line, type NETLOAD and press Enter.
  2. Select AVVADrawingPurge#.dll from the following location: C:\Users\Username\AppData\Roaming\Autodesk\ApplicationPlugins\AVVADwgPurge.bundle\Contents\Windows
  3. Choose the folder based on the CAD version you have.
  4. Select the DLL file and click to load.
  5. Once the file is loaded, try to run the DWG-PURGE or DWG-PURGE-BATCH command.

How to avoid manual loading ?

If you want to avoid loading the app manually for each session of AutoCAD, try the following.

  1. Download this LISP file and save it to your computer.
  2. At the command line, type APPLOAD and select the LISP file you downloaded (or drag and drop the LISP file into AutoCAD).
  3. Click Load and close the dialog.
  4. Then at the command line, type LoadDwgPurge and press Enter.

I want to enable/disable purge while opening the drawing

If you want to enable/disable the purge while opening the drawing:

  1. Enter the DWG-PURGE-BATCH command.
  2. Go to the Drawing Purge Settings tab.
  3. In the General Options section, enable or disable Scan for DGN data while opening a drawing.

Where I can change the options for DWG-PURGE command

If you want to change the configurations for the purge commands:

  1. Enter the DWG-PURGE-BATCH command.
  2. Go to the Drawing Purge Settings tab.

App icons are not visible

After a successful installation of Drawing Purge, if you are not able to see the ribbon or menu, please try the following steps:

  1. At the command line, type CUILOAD. This should bring up a window as shown in the below image.

CUILOAD

  1. If the drawing purge group is already there, click Unload.
  2. Click Browse and select AjilalVijayan_DrawingPurge.cuix from the folder: C:\Users\Username\AppData\Roaming\Autodesk\ApplicationPlugins\AVVADwgPurge.bundle\Contents\Resources
  3. Click the Load button.
  4. Close the CUILOAD window and check whether the app is visible in the ribbon.
  5. If the app is still not visible, restart AutoCAD and check again.

DGN data not purging

If the app is not deleting the dgn data after detecting it, then please do the following.

  1. Open the drawing.
  2. Copy and paste the below LISP code at the command line and hit Enter:

LISP Code

(dictremove (namedobjdict) "ACAD_DGNLINESTYLECOMP")

Then try the command again.

Purge Settings folder not found

Folder not found

By default, the purge settings files are saved to below location.

C:\Users\Username\AppData\Roaming\Autodesk\ApplicationPlugins\AVVADwgPurge.bundleContents\DwgPurgeSettings

Tip

You can save the folder DwgPurgeSettings to any location you prefer to share the purge settings with other users.

If you are receiving an error as shown below, which says the purge settings folder is not found,

Folder not found

then click OK and then browse to the default location or the location where you have saved the settings folder.

After selecting the folder, click Reset button

Folder not found

eNullObjectId error

App Folder

While using the DWG-PURGE command, if you encounter an eNullObjectId database error, please try the following recovery steps:

Method 1: Database Audit

  1. At the command line, type AUDIT and press Enter.
  2. Fix any errors detected? [Yes/No]: Type Y and press Enter.
  3. This process may take some time depending on the overall size of the file.
  4. Once the audit operation finishes, save the drawing and close it.
  5. Open the drawing again and check whether the DWG-PURGE command runs successfully.

Method 2: DXF Database Round-Trip

If the error continues to occur even after completing a database audit, follow these steps to clean and rebuild the file mapping:

  1. Open the problematic drawing, enter DXFOUT at the command line, and save the DXF file to any temporary folder.
  2. Open a completely blank drawing and import that file using the DXFIN command.
  3. Inside this new file, enter DXFOUT again and save it as a secondary temporary file.
  4. Open another fresh, blank drawing and import the secondary file using DXFIN.
  5. Save this final document as a standard .dwg file, then run the DWG-PURGE command.

Change System Variables

To change the System Variables values, please open the SysVarTemplate.dwg file and change the values in that drawing.

SysVarTemplte.dwg can be located in the app settings folder

C:\Users\Username\AppData\Roaming\Autodesk\ApplicationPlugins\AVVADwgPurge.bundleContents\DwgPurgeSettings

ajilalv at gmail dot com