Archtct1 Posted May 3, 2010 Posted May 3, 2010 Recently after importing a file a cad from a civil engineer, our base files have jumped to 2.58 mb as a standard even when every object has been deleted. The only layer left after purging is the "0" layer and a zillion layer filters which don't seem to have any layer associated to them. This file has now been imported into most of our base sheets and the files all start at 2.58 mb Any advise as to how to remove them and reduce the file size? Quote
WtaDude0822 Posted May 3, 2010 Posted May 3, 2010 You might try the -purge command and select the Regapps option. A regular purge won't take these out. Quote
Cad64 Posted May 3, 2010 Posted May 3, 2010 Purge, -Purge and Audit will not remove layer filters. Try the lisp routine below, posted by CarlB on another forum, a long, long time ago. (princ "\nType LFD to start") (defun C:LFD () (vl-Load-Com) (vl-Catch-All-Apply '(lambda () (vla-Remove (vla-GetExtensionDictionary (vla-Get-Layers (vla-Get-ActiveDocument (vlax-Get-Acad-Object)))) "ACAD_LAYERFILTERS"))) (princ "\nAll layer filters have been deleted.") (princ)) Run the routine and then Purge your drawing. FYI: I generally clean any files I get from outside sources before using them as Xrefs. I save out a copy of the original and then I Purge & Audit the files and then I Wblock them out to a new file. This gives me a clean, unbloated, file to work with. Since I started doing this, I haven't had any problems with my drawings. No sluggish performance and no crashes. Quote
Archtct1 Posted May 4, 2010 Author Posted May 4, 2010 Thank You all for the help. The LISP routine and a final purge saved the day and reduced the typical 3 mb file to 180kb... Yahooo Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.