Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Huge Dwg size with no entities 4

Status
Not open for further replies.

kevinmd

Mechanical
Aug 2, 2004
2
I have a dwg that is 2 mb in size and should really only be about .5 mb. It was sent to me from a client. I purged completed, tried to wblock it, ran a qtext check and it is still 2 mb. I then did a little test: opened up a new empty dwg and saved-it was 25kb. Then copyclipped one line (yes only a line about 4' long, nothing special) from the large dwg into the new dwg and saved. The new dwg saved at 1.5 mb. The same thiung happened no matter what I copied into the new dwg, it always seemed to bring other 'hidden' invisible things over. There is nothing in the dwg but a line. I then tried to purge this new dwg again, said nothing there, but still saved at 1.5mb. When I did an audit pass #3 said there were 20,000 items, but what and where? Then tried to recover it, this also listed 20,000 items. No idea what they can be. There is nothing that I can think of to do. It is incredibly frustrating trying to saved what should be a small dwg and it takes 2 minutes. Not to mention trying to just edit it. Any ideas?
 
Replies continue below

Recommended for you

kevinmd,

I think the drawing is not made by Acad. Did You save as r12.dxf?

Lothar

ADT 2004
ACAD 2002
 
I had that problem with autocad drawing made with Architectual desktop. It takes forever to pan. Did not solve the problem and I not do any more business with that client. so the problem went away. Adding a more ram did help.
 
How many layers, are in the drawing file?
 
This may seem simple, and maybe you already checked, but are there any layers that are frozen or turned off?
Are there any objects in any of the layout tabs?
It could be any number of things, but it seems impossible that there is nothing in the drawing. I have ADT drawings that are full of 3D objects, and I rarely get over 1MB
The foundation plan I am working on right now is only 267K, and it is all in 3D.

Try saving it down to R12 to see if it will purge everything out.

 
How many layer filters are in the drawing? Often that drives up the size and slows the drawing down. You can use this lisp to purge them out:

;===========================================================
(defun C:LayerFiltersDelete ()
(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))
(defun C:LFD () (C:LayerFiltersDelete))

;===========================================================



John Peterson
 
Bingo !!!!

Your lisp routine was the ticket.

The layers filters were the cause, all 20,000 of them. (Yes 20,000) Apparently layer filters follow a copyclipped entity to the new dwg. I guess that's how there became so many. I never would have found them.

Here's the breakdown: Drawing started at 1.4 Mb, after running your routine, new dwg size... 57 kb.

Many Many Thanks

Kevin
 
Can anybody explain in details how to use the Marauder's lisp routine?
 
copy/paste the code into notepad, saveas LayerFilterDelete.lsp. Move to a folder in acad's support path (e.g. \Support). At the command line load the routine by typing (load"LayerFilterDelete"). Invoke the command by typing LayerFilterDelete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor