×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Huge Dwg size with no entities
4

Huge Dwg size with no entities

Huge Dwg size with no entities

(OP)
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?

RE: Huge Dwg size with no entities

kevinmd,

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

Lothar

ADT 2004
ACAD 2002

RE: Huge Dwg size with no entities

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.

RE: Huge Dwg size with no entities

How many layers, are in the drawing file?

RE: Huge Dwg size with no entities

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.

RE: Huge Dwg size with no entities

2
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
www.wba-arch.com

RE: Huge Dwg size with no entities

(OP)
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

RE: Huge Dwg size with no entities

Can anybody explain in details how to use the Marauder's lisp routine?

RE: Huge Dwg size with no entities

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

RE: Huge Dwg size with no entities

oops make that LayerFiltersDelete

RE: Huge Dwg size with no entities

Thanks, it worked.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources