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;
Code:
(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...??