Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DGN purge for 2014

11 REPLIES 11
SOLVED
Reply
Message 1 of 12
harilalmn1
13977 Views, 11 Replies

DGN purge for 2014

Hi All,

I am using AutoCAD 2014 (Service pack-1). My files are too huge for their contents. Most of these files are very hard to work with too...

I tried DGN Purge for 2014 and these files are getting reduced wih the DGNPURGE command. But the problem is that it takes almost one hour for a file.

 

I have almost 560 files and for that reason I cannot afford to spend a560 Hrs to clean them up..!! 

 

I have uploaded a sample file here;

https://www.dropbox.com/s/dtlcbuq8hc7z6yw/001.dwg

 

 

I had the same issue posted in Augi and here is the link to the post;

Quoting it here...

 

****************************************************************************************************************
Hi All,
We have DGN to DWG converted files which are very heavy and slow to work. I thought of removing the AEC content / proxy content so that we could sanitize the files. I tried a lisp file got from;

http://forums.autodesk.com/t5/Visual...1988842/page/2
which follows like this;

(defun c:urgedictionary()
(foreach i(entget(namedobjdict))(and(=(car i)3)(princ"\n")(princ(cdr i))))
(foreach i(entget(namedobjdict))(and(=(car
i)3)(dictremove(namedobjdict)(cdr i))))
(princ"\n\n--\n\n")
(foreach i(entget(namedobjdict))(and(=(car i)3)(princ"\n")(princ(cdr i))))
(princ)
)


What I did is here.

First I changed the "c:urgedictionary", which defines the command name, to "c:Proxyremove" (Optional step).
I added this code to the main acad2014doc.lsp file, so that the command loads everytime you open a document.
Then I Created a AutoCAD script file (removeproxy.scr) which had the following;

PROXYREMOVE
-PURGE
R
*
N
-PURGE
ALL
*
N
QSAVE

Used the ScriptPro utility to run the script on multiple file.
This way it took only a few seconds for one file to be cleaned up.

This did reduce the file sizes from, say 30-40 MBs to kbs..!! But at the same time this screwed up the drawing annotations, layers etc. Some drawings have their complete layers purged and all entities got shifted to one single layer....Some lost the scale lists...

Like this each file has different issues after running it.
I believe the proxy elements would have been spread both inside and outside some blocks...

Could some one help me...??
****************************************************************************************************************

 

Link to the post and responses;

http://forums.augi.com/showthread.php?154656-DGN-to-DWG-Heavy-Files

 

I am in real trouble, as no practical solution turned up so far and my deadlines are fast approaching .... Can some one help me...??? Please...

11 REPLIES 11
Message 2 of 12
TerryDotson
in reply to: harilalmn1

I reduced your supplied file from 53,875kb to 777kb in 35sec on a 7 year old workstation using ToolPac's Drawing Purge.

Message 3 of 12
pendean
in reply to: harilalmn1

There is a freeware on the Autodesk Exchange Apps website that can be used as well.
Message 4 of 12
abubakars
in reply to: harilalmn1

 

Here is one of the tools, available to download from Autodesk Exchange Apps “BatchInDatabase” and “BatchInEditor”  , links are below
http://apps.exchange.autodesk.com/ACD/en/List/Search?query=batchindatabase&facet=&collection=&sort=d...
http://apps.exchange.autodesk.com/ACD/en/List/Search?query=batchineditor&facet=&collection=&sort=dat...

In BatchInDatabase , the drawings will not be opened in AutoCAD editor but operations are being done in memory, so the process time will be significantly less.
See the YouTube video for the command in action http://www.youtube.com/watch?v=k3l3JhJCVJ8

In BatchInEditor, the drawings will be opened in editor, so as to run user defined commands( lisp, script etc..)

Both tools are powerful with lots of built-in commands, so as to make Users less dependent on lisp and script for additional CAD solutions.

Give it a try.

Message 5 of 12
harilalmn1
in reply to: harilalmn1

Great..!! My Problems are resolved and Thanks a ton for the solutions...!!!Smiley Very Happy

Message 6 of 12
rkmcswain
in reply to: TerryDotson

Hmmmm. I wonder why the OP went with a different solution....
R.K. McSwain     | CADpanacea | on twitter
Message 7 of 12
jcoleman
in reply to: abubakars

How do you use the BatchinEditor App?  I can't find install instructions.  I have the same problem as the OP but don't know what they did to resolve.  I need the same fix.  I already pay enough in AutoDesk subscription fees, I would like a free fix for the hundreds of drawings I have to run DGNpurge on.  Thanks for your help.

 

Message 8 of 12
jcoleman
in reply to: jcoleman

Nevermind, I found all the info I needed in this link:

http://www.cadmanagertools.com

Message 9 of 12
s60088g
in reply to: jcoleman

 

 

I downloaded the DGN Hotfix.... renamed the existing system file as .bak and copied the DgnLS file in its place.  When I'm in AutoCAD and type dgnpurge, I get the "Unknown command" error.

 

Any help??

Message 10 of 12
rkmcswain
in reply to: s60088g

s60088g wrote:

I downloaded the DGN Hotfix.... renamed the existing system file as .bak and copied the DgnLS file in its place.  When I'm in AutoCAD and type dgnpurge, I get the "Unknown command" error.

You have to NETLOAD the DgnLsPurge.dll file before the command will work.

 

R.K. McSwain     | CADpanacea | on twitter
Message 11 of 12
s60088g
in reply to: rkmcswain

 

Thanks.  I see now.  And it's taking me to the correct folder yet I don't see the AcDgnLs.dll file.  I have the folder open to that location and I can see it, but I don't see it from within the folder window in cad using Netload....  I've attached a screenshot.

 

Message 12 of 12
kylei7449
in reply to: s60088g

I know this is an old thread but I came across while researching a similar issue with linetypes I couldn't purge at the AutoDesk APP site. https://apps.autodesk.com/ACD/en/Detail/Index?id=appstore.exchange.autodesk.com%3adrawingpurge_windo...

 

It's called Drawing Purge. It's two applications in one and installs it on your Ribbon under Plug-ins. Just use the Batch command as it allows you to set which options you want to Purge. (if you use the DWG-PURGE it will do a Select All and purge everything, so be careful)  

 

I found a suggestion on how to identify DGN linetypes embedded in a drawing.

http://blogs.rand.com/support/2013/06/how-to-resolve-drawing-bloat-due-to-many-unpurgable-linetypes....

Do a Save As and save the DWG as a DXF file. Then open the file in Notepad (it may take a while if it's a really big drawing) and then do a Find for DGNSLDEF. It will identify it as a Dictionary item and it will appear for every DGN linetype you have. 

 

I ran the Batch on the closed file and it properly identified all those bogus linetypes but when I opened the file all the linetypes were still there. However, when I open LINETYPES to check I was able to select them and Delete them all--which I couldn't do before. I also found they had twins in text styles and I was able to delete those as well. Unfortunately it did nothing about reducing the file size (really huge but that's okay since it's a template file). But, I was able to get rid of all those unwanted linetypes.

 

(I'm using Vanilla 2013 BTW)

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost