RegApps (File Corruption & Problem Drawings)
Computer hardware problems, power surges, user mistakes, or software problems can cause errors that prevent you from editing or plotting the drawing. By saving and AUDITing your work regularly, you can ensure a minimum of lost data if your system fails. It’s interesting to note, if you AUDIT a drawing, and the command hangs for no apparent reason, you may have the following issue:
RegApps
Some major programs on the market (not an Autodesk, Bently, or Carlson product) have a tendency to save registered applications with an invalid name, such as “##*a%”)?s*” in an AutoCAD drawing file (similar to an anonymous block). Anytime this drawing is used, even as an xref, new “##*a%”)?s*” RegApp entries will be added to the drawing referencing it, as AutoCAD doesn’t recognize that “##*a%”)?s*” is already registered in the current drawing; a “virus” is born. Invalid RegApp entries will balloon a drawing over time, Audit will report no errors, but at some point, the drawing will no longer open. You can check if the “bloating” is indeed caused by this “virus” by doing the following test:
Issue the following command at the AutoCAD command prompt:(tblnext “appid” 5)(while (print (tblnext “appid”)))
If this action produces a similar listing to the one below (often scrolling infinitely), you need to clean the infected drawing (“EP” is a reference to Eagle Point):
((0 . “APPID”) (2 . “EP##*a%”) (70 . 0))
((0 . “APPID”) (2 . “EP##*a%”) (70 . 0))
((0 . “APPID”) (2 . “EP##*a%”) (70 . 0))
((0 . “APPID”) (2 . “EP##*a%”) (70 . 0))
((0 . “APPID”) (2 . “EP##*a%”) (70 . 0))
If you enter -purge at the Command prompt, -PURGE displays the following prompt on the command line:
Enter type of unused objects to purge:
Join I.II.I today to access to our comprehensive Civil 3D library for as low as $20.
*Access to the Library is a free service to our clients.





One more option. If you find that you are doing this often, you could create a toolbar button containing the following macro:
(command “-purge” “_R” “*” “_N”)
NICE!
Thanks for including R2000-2002 support for this wonderfull goodie! I am constantly struggling with these. Just a note: In A2K, I had (what appeared to be)an older version of ObjectDCL.arx in my support directory. The app would not function until I (renamed the old version) and replaced it with the version that you had, and the app works GREAT!
Thanks
K.
Scott McEachron,
PurgeIDs works EXACTLY as advertised — thank you!
Ronald A. Montesano, E.I.T.
Poughkeepsie, NY