View Full Version : Why are my Acad2000 dwg files so big when they have so little in them?
FredBear
10-15-2005, 05:51 PM
My office uses ACAD2000. (kinda old but works for our purposes.)
I have noticed that some drawing files are very large for their
content. One example is a drawing with 8 lines which has 3 layers, no
blocks, and its size is about 3 megabytes.
The drawing is totally purged.
I'm looking for any recommendations. Are there any utilities out
there that can clean up hidden garbage?
Unfortunately my CAD team can't be taught good drawing hygeine.
Thanks in advance.
Mr. B
10-15-2005, 09:35 PM
With Deft Fingers, Notlih <> wrote:
I have noticed that some drawing files are very large for theircontent. One example is a drawing with 8 lines which has 3 layers, noblocks, and its size is about 3 megabytes.The drawing is totally purged.
Try purging the DWG files of Layer Filters. Create the following Layer Filter
LSP file (LFD.lsp), load and run it. Then Save the file and compare it with
the origina (BAK) file. If that works, then I'd suggest that you set up to
run the LFD.lsp file automatically each time you open any file. This way it
will Purge the drawing of Layer Filters all the time.
ps... whatch out for word wrap in the Lisp file cut/paste info that I've
included
Regards,
BruceF
;;; by Phil L
;;; this layerfilter killer doesn't use vla for the vlax handicapped
;;; type in lfd and it will remove all layerfilters
;;; only way I know to get the table object, "layer", where the filter object
;;; pointer resides, is to get layer '0' and go to its owner since
;;; layer 0 always exists.
;;; Checks layer object for xdict, looks for a layerfilter object.
;;; if found deletes the layerfilter object entity.
;;; makes sure there are no more. (Which shouldn't be)
;;; also makes multi runs thru each xdict to be sure only one layerfilter
;;; I don't know if more than layerfilter object is allowed but
;;; this kills ALL of them
;;; added: kills acad_layerstates also, I don't know what this is but I
;;; don't need or want them. If you need these edit the code indicated
;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
(defun LFcount ( l / c)
(setq c 0)
(foreach x l
(if (= 3 (car x))(setq c (1+ c))))
c
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
(defun killdict (l s / el c )
(setq c 0)
(if (/= (car l) 360)
(progn (alert "dxf structure problem")(exit))) ; dxf 360 is
pointer to dict item
(while (setq el (dictsearch (cdr l) s))
(setq c (+ c (LFcount el)))
(entdel (cdr (assoc -1 el))))
c
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; go thru list and return sublist starting with key data = s or nil
;;; (getsublist '((1 2)(3 4)(5 6)) '(4))==> ((3 4)(5 6))
;;;
(defun getsublist (l s )
(if (or (not l) (= (cdar l) s))
l
(getsublist (cdr l) s ))
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; *** START ***
(defun C:LFD ( / LT found found1 ) ; kill all layerfilters
(setq LT (entget (cdr (assoc 330 (entget (tblobjname "layer" "0")))))
found 0
found1 0)
;; look for all acad_xdictionary
;; then look for all layerfilter entries
;; do for all layer table entity/object
(while (setq LT (getsublist LT "{ACAD_XDICTIONARY" ))
(setq found (+ found (killdict (cadr LT) "ACAD_LAYERFILTERS"))
;;remove following line if layerstates are wanted
;;;*;;; found1 (+ found1 (killdict (cadr LT) "ACAD_LAYERSTATES"))
LT (cddr LT)))
;;;*;;; (princ (strcat "\nLAYERFILTERS/LAYERSTATES found and killed: " (itoa
found) "/" (itoa found1)))
(princ (strcat "\nLAYERFILTERS found and deleted: " (itoa found)))
(princ)
)
;;; by Phil L
Michael \(LS\)
10-15-2005, 09:42 PM
<Notlih> wrote in message news:14c3l1h1eil7unidusa5ui0k4rhro6keot@4ax.com... My office uses ACAD2000. (kinda old but works for our purposes.) I have noticed that some drawing files are very large for their content. One example is a drawing with 8 lines which has 3 layers, no blocks, and its size is about 3 megabytes. The drawing is totally purged. I'm looking for any recommendations. Are there any utilities out there that can clean up hidden garbage? Unfortunately my CAD team can't be taught good drawing hygeine. Thanks in advance.
Download "SuperPurge" and run it. It will let you "hard purge" anything
(even used layers, dictionaries, etc..).
This will allow you to not only just clean the file but also to find out
what's causing the bloat.
HTH,
Michael (LS)
FredBear
10-16-2005, 06:32 AM
Thank you both. SuperPurge, alas was no help. My 8 line drawing is
still at 2.7 meg.
On Sun, 16 Oct 2005 05:42:15 GMT, "Michael \(LS\)"
<NoSpam@MyEmail.com> wrote:
<Notlih> wrote in message news:14c3l1h1eil7unidusa5ui0k4rhro6keot@4ax.com... My office uses ACAD2000. (kinda old but works for our purposes.) I have noticed that some drawing files are very large for their content. One example is a drawing with 8 lines which has 3 layers, no blocks, and its size is about 3 megabytes. The drawing is totally purged. I'm looking for any recommendations. Are there any utilities out there that can clean up hidden garbage? Unfortunately my CAD team can't be taught good drawing hygeine. Thanks in advance.Download "SuperPurge" and run it. It will let you "hard purge" anything(even used layers, dictionaries, etc..).This will allow you to not only just clean the file but also to find outwhat's causing the bloat.HTH,Michael (LS)
Michael \(LS\)
10-16-2005, 10:09 AM
<Notlih> wrote in message news:01p4l15v5obegkc308inqubl02gpnd44jn@4ax.com... Thank you both. SuperPurge, alas was no help. My 8 line drawing is still at 2.7 meg. On Sun, 16 Oct 2005 05:42:15 GMT, "Michael \(LS\)" <NoSpam@MyEmail.com> wrote:<Notlih> wrote in message
news:14c3l1h1eil7unidusa5ui0k4rhro6keot@4ax.com... My office uses ACAD2000. (kinda old but works for our purposes.) I have noticed that some drawing files are very large for their content. One example is a drawing with 8 lines which has 3 layers, no blocks, and its size is about 3 megabytes. The drawing is totally purged. I'm looking for any recommendations. Are there any utilities out there that can clean up hidden garbage? Unfortunately my CAD team can't be taught good drawing hygeine. Thanks in advance.Download "SuperPurge" and run it. It will let you "hard purge" anything(even used layers, dictionaries, etc..).This will allow you to not only just clean the file but also to find outwhat's causing the bloat.HTH,Michael (LS)
If you want to email me the dwg I'll take a look at it.
nekkidnorman@@yahoo.com
(remove one of the @'s to mail me)
FredBear
10-16-2005, 05:44 PM
HI
I would be interested to hear your comments Michael
I recall a couple of months ago a similar situation
We procuce drawings typically of 200k to 500k bytes in sizes and
superinpose them onto architectural backgrounds. At one time we
created a small note of 5 lines of text on a drawing which was approx
3meg is size and subsequently write blocked the text for future use.
The block file for the text was a little less that the original
drawing but was still close to the 3megs. We tried purging but there
was nothing to purge and the original author of the architural drawing
could not provide us with any help. After disfcussions with several
colleagues we noted that there was a similar situation with just a
single line (instead of the text) and assumed that the original
drawing had some kind of watermark that was transfered to subsequent
changes and gave up. We were using ACAD 2000i and the architect said
that his original drawing was authored on ACAD 2004. We subsequently
made sure that our blocks were on virgin stardard sheets
Deanesfield
On Sun, 16 Oct 2005 18:09:44 GMT, "Michael \(LS\)"
<NoSpam@MyEmail.com> wrote:
<Notlih> wrote in message news:01p4l15v5obegkc308inqubl02gpnd44jn@4ax.com... Thank you both. SuperPurge, alas was no help. My 8 line drawing is still at 2.7 meg. On Sun, 16 Oct 2005 05:42:15 GMT, "Michael \(LS\)" <NoSpam@MyEmail.com> wrote:<Notlih> wrote in messagenews:14c3l1h1eil7unidusa5ui0k4rhro6keot@4ax.com...> My office uses ACAD2000. (kinda old but works for our purposes.)>> I have noticed that some drawing files are very large for their> content. One example is a drawing with 8 lines which has 3 layers, no> blocks, and its size is about 3 megabytes.>> The drawing is totally purged.>> I'm looking for any recommendations. Are there any utilities out> there that can clean up hidden garbage?>> Unfortunately my CAD team can't be taught good drawing hygeine.>> Thanks in advance.>Download "SuperPurge" and run it. It will let you "hard purge" anything(even used layers, dictionaries, etc..).This will allow you to not only just clean the file but also to find outwhat's causing the bloat.HTH,Michael (LS)If you want to email me the dwg I'll take a look at it.nekkidnorman@@yahoo.com(remove one of the @'s to mail me)
Mr. B
10-16-2005, 06:09 PM
With Deft Fingers, Notlih <> wrote:
I have noticed that some drawing files are very large for theircontent. One example is a drawing with 8 lines which has 3 layers, noblocks, and its size is about 3 megabytes.The drawing is totally purged.
One thought came to mine. If you have some blocks which are lots of JUNK in
them, you might want to try to clean them up (and redefine them) and see if
that makes a difference. That is one reason why you can't purge some stuff
because they are part of a block.
Unfortunately my CAD team can't be taught good drawing hygeine.
That is something you should deal with. In my humble opinion (having been
drafting manually/CAD for over 30 years)... SLOPPY drafting is NOT excusable.
And if a 'draftperson' doesn't understand the necessisty of clean CAD work,
they read them the riot act.
My 2-Bits worth.
Regards,
BruceF
Michael \(LS\)
10-18-2005, 01:12 AM
<Deanesfield> wrote in message
news:4cv5l11qi5ebhtjg2geomdc85rd0m0vdvn@4ax.com... HI I would be interested to hear your comments Michael I recall a couple of months ago a similar situation We procuce drawings typically of 200k to 500k bytes in sizes and superinpose them onto architectural backgrounds. At one time we created a small note of 5 lines of text on a drawing which was approx 3meg is size and subsequently write blocked the text for future use. The block file for the text was a little less that the original drawing but was still close to the 3megs. We tried purging but there was nothing to purge and the original author of the architural drawing could not provide us with any help. After disfcussions with several colleagues we noted that there was a similar situation with just a single line (instead of the text) and assumed that the original drawing had some kind of watermark that was transfered to subsequent changes and gave up. We were using ACAD 2000i and the architect said that his original drawing was authored on ACAD 2004. We subsequently made sure that our blocks were on virgin stardard sheets Deanesfield
Well, there's lots of reasons for drawing bloat. Blocks, X-Refs, Dim
Styles, Text Styles, Template, Layer Filters, Etc. Etc. can all add bloat.
For instance, I used to use an "add-on" product that ran inside of AutoCAD
(Arch-T) and it would add layers and other info to every file I opened. I
could purge the stuff out but it would come back the next time I opened the
drawing.
I can't give a definitive answer to what you're experiencing without looking
at a problem file.
The offer stands for you too, if you want to send me a "problem" file I'll
take a look at it and let you know what I find.
Michael (LS)
G. Willis
10-19-2005, 11:47 AM
Use CDGpurge at this link:
http://watertech.blogspot.com/2005/03/cdg-purge-resurrected.html
garth.
"Mr. B" <User@NoWhere.com> wrote in message
news:1q16l116cl5vv782la9me67ph65ssimclh@4ax.com... With Deft Fingers, Notlih <> wrote:I have noticed that some drawing files are very large for theircontent. One example is a drawing with 8 lines which has 3 layers, noblocks, and its size is about 3 megabytes.The drawing is totally purged. One thought came to mine. If you have some blocks which are lots of JUNK in them, you might want to try to clean them up (and redefine them) and see if that makes a difference. That is one reason why you can't purge some stuff because they are part of a block.Unfortunately my CAD team can't be taught good drawing hygeine. That is something you should deal with. In my humble opinion (having been drafting manually/CAD for over 30 years)... SLOPPY drafting is NOT excusable. And if a 'draftperson' doesn't understand the necessisty of clean CAD work, they read them the riot act. My 2-Bits worth. Regards, BruceF
dmtaurus
10-20-2005, 11:41 PM
When drawings become huge compared to their content I use the "wblock"
command, save what the monitor screen shows, and create a new drawing
file. This has always brought huge files dowm to size. The command is
in 2000.
Notlih wrote:
My office uses ACAD2000. (kinda old but works for our purposes.) I have noticed that some drawing files are very large for their content. One example is a drawing with 8 lines which has 3 layers, no blocks, and its size is about 3 megabytes. The drawing is totally purged. I'm looking for any recommendations. Are there any utilities out there that can clean up hidden garbage? Unfortunately my CAD team can't be taught good drawing hygeine. Thanks in advance.
MyLounge.com Site Map
Forum:
Cars,
Cell Phone,
Database,
Games,
Home Improvement,
IT,
Music,
School,
Sports,
Web Design,
Web Server,
Weight Loss
The MyLounge.com forum is intended for informational use only and should not
be relied upon and is not a substitute for any advice. The information contained
on MyLounge.com are opinions and suggestions of members and is not a representation
of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for
the accuracy, completeness or usefulness of any postings or the qualifications
of any person responding. Please consult a expert or seek the services of an
attorney in your area for more accuracy on your specific situation. Please note
that our forums also serve as mirrors to Usenet newsgroups. Many posts you see
on our forums are made by newsgroup users who may not be members of MyLounge.com
Term of Service
vBulletin v3.0.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.