TheSwamp

CAD Forums => CAD General => Topic started by: Nardino on April 22, 2014, 03:07:20 PM

Title: Registry apps
Post by: Nardino on April 22, 2014, 03:07:20 PM
Hello to all,
A while back with your help i managed to delete the extra registry apps that were attached to the drawings. Unfortunately i am having sort of the same problem again............it seams that as i save a drawing, many of this registry apps attach to the drawings.....i dont even know what these apps are or how they attach to the files.
Having said this, is there a way to prevent thes apps to attach?
thanks...Nardino
Title: Re: Registry apps
Post by: cadtag on April 22, 2014, 03:24:44 PM
Regapps-- 'registered apps, as opposed to registry apps.

AFAIK -- they are created when something in the drawing or the installed cad software calls for them.  to not create them, don't use CAD.



not helpful, right?  but they are only occasionally a problem (when thousands get created).  while it's not a problem to clean them out with -Purge R, it's not something that you can prevent from being created.
Title: Re: Registry apps
Post by: Mark on April 22, 2014, 03:38:01 PM
use -purge Regapps to remove them. I don't know of away to prevent them.
Title: Re: Registry apps
Post by: Nardino on April 22, 2014, 03:38:26 PM
i like the first choice....do not use cad.   :lmao:
anyway thanks for the info
Title: Re: Registry apps
Post by: ronjonp on April 22, 2014, 03:46:06 PM
http://knowledge.autodesk.com/support/autocad/downloads/caas/downloads/content/regapp-id-cleanup-utility-autocad-20132014.html
Title: Re: Registry apps
Post by: MP on April 22, 2014, 03:55:55 PM
... morbidly bloated with zombies and regapp entries likely introduced by an audit ...

You don't need anything but to wblock the drawings out using the * option when prompted for <define new drawing>.
Title: Re: Registry apps
Post by: BlackBox on April 23, 2014, 01:12:50 PM
FWIW -

I developed this (http://apps.exchange.autodesk.com/ACD/en/Detail/Index?id=appstore.exchange.autodesk.com%3aappautopurgeregforautocad00ae_windows32and64%3aen), to clean up unused RegApps at drawing open, and Save* automagically, which is measurably faster than using LISP to call -PURGE Command, no need to modify AcadDoc.lsp, etc.

Cheers
Title: Re: Registry apps
Post by: jonesy on April 24, 2014, 05:55:13 AM
This is probably a silly question, but forgive my ignorance on this...

Would deleting the RegApps cause any problems/stability issues with the drawing file?
Title: Re: Registry apps
Post by: mjfarrell on April 24, 2014, 07:45:17 AM
shouldn't
Title: Re: Registry apps
Post by: BlackBox on April 24, 2014, 08:27:23 AM

Would deleting the RegApps cause any problems/stability issues with the drawing file?

Building on Michael's post if I may....

Registered Applications (RegApps) are required for adding Extended Entity Data (XDATA) to drawing objects. Many can be added each time you open a given drawing, particularly for verticals such as Civil 3D, in preparation of adding XDATA at some point while editing said drawing.

If in use, meaning XDATA has been added to one or more drawing objects referencing a RegApp, then it is unable to be purged from the drawing. However, to site RonJon's linked reference above....

Quote
When you delete an object with Extended Entity Data (xdata), a regapp ID remains in the application ID (APPID) symbol table. When a file contains excess unreferenced regapp IDs, performance and file size may be negatively affected.


Given that RegApps can be added in preparation of being needed, regardless of their actually being used, and also remain even after all drawing objects that reference same are deleted from drawing, one can easily suffer the negative performance, and drawing bloat if not specifically purged (given that RegApps are not included in they typical calls to 'purge all', or dialog, etc.).

Calling (command "._-purge" "_r" "*" "n") within your AcadDoc.lsp file is a great start, but only accounts for those unreferenced RegApps that exist at drawing open, and since commands cannot be called from within Visual LISP reactors, one is then relegated to other means of performing same prior to SAVE* (i.e., redefining SAVE* Commands, using a macro to first purge RegApps, then Save, etc.), which can be cumbersome.

Programmatically iterating the RegisteredApplications Collection (http://entercad.ru/acadauto.en/index.html?page=idh_registeredapps_collection.htm) via LISP is significantly slower than calling -PURGE Command, but does make it possible to do from within a reactor.

For these reasons I developed the app linked above specifically to remove the burden of user having to do any of this, so that keeping this aspect of one's drawing(s) 'clean' was essentially plug & play... The .NET API is measurably faster than both iterating via LISP, and -PURGE Command call, and so seemed like a win-win to my mind.

Hope this makes (more?) sense. :geek:

Cheers
Title: Re: Registry apps
Post by: jonesy on April 24, 2014, 08:43:24 AM

Would deleting the RegApps cause any problems/stability issues with the drawing file?

Building on Michael's post if I may....
Please and thanks :)
Quote
Registered Applications (RegApps) are required for adding Extended Entity Data (XDATA) to drawing objects. Many can be added each time you open a given drawing, particularly for verticals such as Civil 3D, in preparation of adding XDATA at some point while editing said drawing.

If in use, meaning XDATA has been added to one or more drawing objects referencing a RegApp, then it is unable to be purged from the drawing. However, to site RonJon's linked reference above....

Quote
When you delete an object with Extended Entity Data (xdata), a regapp ID remains in the application ID (APPID) symbol table. When a file contains excess unreferenced regapp IDs, performance and file size may be negatively affected.


Given that RegApps can be added in preparation of being needed, regardless of their actually being used, and also remain even after all drawing objects that reference same are deleted from drawing, one can easily suffer the negative performance, and drawing bloat if not specifically purged (given that RegApps are not included in they typical calls to 'purge all', or dialog, etc.).

Calling (command "._-purge" "_r" "*" "n") within your AcadDoc.lsp file is a great start, but only accounts for those unreferenced RegApps that exist at drawing open, and since commands cannot be called from within Visual LISP reactors, one is then relegated to other means of performing same prior to SAVE* (i.e., redefining SAVE* Commands, using a macro to first purge RegApps, then Save, etc.), which can be cumbersome.

Programmatically iterating the RegisteredApplications Collection (http://entercad.ru/acadauto.en/index.html?page=idh_registeredapps_collection.htm) via LISP is significantly slower than calling -PURGE Command, but does make it possible to do from within a reactor.

For these reasons I developed the app linked above specifically to remove the burden of user having to do any of this, so that keeping this aspect of one's drawing(s) 'clean' was essentially plug & play... The .NET API is measurably faster than both iterating via LISP, and -PURGE Command call, and so seemed like a win-win to my mind.

Hope this makes (more?) sense. :geek:

Cheers
Thanks for taking the time to explain that to me. Much appreciated.
Title: Re: Registry apps
Post by: BlackBox on April 24, 2014, 08:45:01 AM
Thanks for taking the time to explain that to me. Much appreciated.

You're very welcome, jonesy.  :-)
Title: Re: Registry apps
Post by: Nardino on April 24, 2014, 11:36:42 AM
Thanks again to everyone. It has been veru informative. Nardino