Looking for a Plugin similar to DGNPURGE but for multiple files at a time

Looking for a Plugin similar to DGNPURGE but for multiple files at a time

Anonymous
Not applicable
1,002 Views
6 Replies
Message 1 of 7

Looking for a Plugin similar to DGNPURGE but for multiple files at a time

Anonymous
Not applicable

So I run AutoCAD MEP 2012 and i have a couple hundred dwg files that are around 5 MB instead of 4-500 KB. there are around 49,000 unreferenced linetypes in every file. I could us DGNPURGE for each individual drawing, but that would take forever. Does anyone have a plugin that could do this?

0 Likes
1,003 Views
6 Replies
Replies (6)
Message 2 of 7

rkmcswain
Mentor
Mentor
Why not just handle each drawing as it is opened?

Just make it run at DWG open, and when that file is saved, it's done.

We had way more than 49k affected files here, and there was no way I was going to turn some automated script loose on them.

R.K. McSwain     | CADpanacea | on twitter
Message 3 of 7

b_sharanraj
Advocate
Advocate

Hi @Anonymous

 

You can Customize it from Excel

 

Step 1 : Open Excel & Direct to Specific path which contains AutoCAD Drawings

Step 2 : Opens AutoCAD Drawing, Purge, Save & Close

Step 3 : Goto Step 1 For Next Drawing

Regards

B.Sharan Raj

0 Likes
Message 4 of 7

roland.r71
Collaborator
Collaborator

so, you're not looking for a plugin... as that would still require you to open each drawing. You are looking for a third party proggy that will purge your DWG's without ever opening them in Acad. (right?)

 

Otherwise running an automated batch to run the purge on all dwg's is only going to cost some time (but you might as well run it at night)

 

All you realy need: A lisp to run on 1 drawing. A script to load & run the lisp on all DWG's. (or if it's just a single command, you only need to execute that command for each drawing)

 

Such a .scr batch looks something  like this:

(command "fileopen" "D:\\yourdwgs\\drawing1.dwg")
(load "myLisp.lsp")
(c:myPurgeFunc)
(command "qsave")
(command "fileopen" "D:\\yourdwgs\\drawing2.dwg")
(load "myLisp.lsp")
(c:myPurgeFunc)
(command "qsave")

etc.

 

Or just something like:

(command "fileopen" "D:\\yourdwgs\\drawing1.dwg")
(command "purge" "a")
(command "qsave")
(command "fileopen" "D:\\yourdwgs\\drawing2.dwg")
(command "purge" "a")
(command "qsave")

 

 

There are a few apps out there that can create such a batch file for you. (list of drawings + list of commands -> generate script)

 

...and i'm still rewriting my own lisp version of such generator. (almost done, but still need to do some extensive testing)

0 Likes
Message 5 of 7

Anonymous
Not applicable

Hi

I dont know which plugin you are using?

I use dwgpurge plugin in my Autocad-2014 for the same purpose. May this will help you.

https://apps.autodesk.com/ACD/en/Detail/Index?id=3773138176974634673

Message 6 of 7

roland.r71
Collaborator
Collaborator

@Anonymous wrote:

Hi

I dont know which plugin you are using?

I use dwgpurge plugin in my Autocad-2014 for the same purpose. May this will help you.

https://apps.autodesk.com/ACD/en/Detail/Index?id=3773138176974634673



Looks like it has the option he's looking for. Create & run a batch to purge a selection of drawings.

0 Likes
Message 7 of 7

Anonymous
Not applicable

Thats the one I use too


@Anonymous wrote:

Hi

I dont know which plugin you are using?

I use dwgpurge plugin in my Autocad-2014 for the same purpose. May this will help you.

https://apps.autodesk.com/ACD/en/Detail/Index?id=3773138176974634673


 

0 Likes