PDA

View Full Version : Purge multiple files in a script?



Tunspan
10th Nov 2004, 12:06 am
I have discovered a great tool for purging AutoCAD files called CDGPurge. It is a lisp routine that runs within CAD (found in a Google search), and reduces your file size by almost a third. With a 130 gigs of active CAD files floating around my file, my question to yall, is there a way of automating this purge process (or any purge process for that matter)?

If I could get something like this to run every once in a while it would save some tremendous space on our file server, plus it would speed up the entire CAD process from start to finish.

Any hint, clues, advice, or already written programs would be much appreciated.

Thanks in advance. :D

David

fuccaro
10th Nov 2004, 07:01 am
Tunspan
I am not a big fan of the script files. I downloaded some time ago the CDG purge and as you told, it reduces the file size. I tried to write a script file but it returned an error message at running. Possible this is because I have no experience with the script file but I know that other people too had no success with this.
Sorry, I can't help you :(

CADTutor
10th Nov 2004, 10:18 am
It's always a good idea to use AutoCAD's Purge command on drawings at the end of a project and before files are archived, just to keep things neat and tidy. There's nothing magical about it - Purge just removes unused block references, layers, text styles etc. If your drawings are already "tidy", there's nothing more that Purge can do. You may have seen a big change in the size of one file but you may not get as big an effect on other files.

fuccaro
10th Nov 2004, 01:57 pm
CDG purge will delete also the named layer filters, and probable other things too because in some of the cases the file becomes very thin.

Tunspan
10th Nov 2004, 08:59 pm
I have always been kind of **** about my purging of files, and am slowly teaching the others in the office to do the same.

As for the CDG Purge vs. AutoCAD purge, there is a huge difference in file size. On average I am seeing about a 2/3 reduction per file. With the nature of our work, our files get passed around the world, and show up back on our systems, some times several years later, with all sorts of 'extra' data within. The CDG Purge is doing a great job!

If anyone knows how I might be able to deploy this (or any other) Purge program server wide, please let me know.

Thanks,

David

hyposmurf
10th Nov 2004, 09:00 pm
Yeh I think it deletes out othet things that your vanilla CAD purge doenst.Such as groups,page set ups etc

CarlB
11th Nov 2004, 06:54 am
You need a batch processing program such as "script pro" that comes with AutoCAD 2004, or "batchrun" from http://www.cadmicro.com/categories/b6_caddesk2-1-1.htm or "EC-Batch" from http://www.bobscadshop.com/ecbatch.php
CDGpurge 4.0 has a command line option, "-cdgpurge" which should be able to be used in a batch process.