Jump to content

Recommended Posts

Posted

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?

Posted

You might try the -purge command and select the Regapps option. A regular purge won't take these out.

Posted

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.

Posted

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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...