TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Andrea on January 06, 2016, 02:20:23 PM

Title: Unpurged drawing....
Post by: Andrea on January 06, 2016, 02:20:23 PM
Hi everyone..

the drawing attached have 8MB....but no entity..
I'm trying to find out what is the cause..

anyone can take a look and tell me what's the problem ?

Thank you.
Title: Re: Unpurged drawing....
Post by: Lee Mac on January 06, 2016, 02:34:25 PM
Drawing contains 3680 anonymous block definitions and 136575 entries in the ACAD_DGNLINESTYLECOMP dictionary.

Try the following:
Code - Auto/Visual Lisp: [Select]
  1. (defun c:purgeall nil
  2.     (dictremove (namedobjdict) "acad_dgnlinestylecomp")
  3.     (command "_.-purge" "_r" "*" "_n")
  4.     (repeat 3 (command "_.-purge" "_a" "*" "_n"))
  5.     (princ)
  6. )
Title: Re: Unpurged drawing....
Post by: ronjonp on January 06, 2016, 02:41:19 PM
Here's (http://www.theswamp.org/index.php?topic=9433.msg121330#msg121330) a tool as well.
Title: Re: Unpurged drawing....
Post by: Lee Mac on January 06, 2016, 02:48:20 PM
Here's (http://www.theswamp.org/index.php?topic=9433.msg121330#msg121330) a tool as well.

That's exactly what I used to diagnose the drawing - a great utility from MP.
Title: Re: Unpurged drawing....
Post by: Squirltech on January 06, 2016, 02:55:37 PM
That's pretty sweet! Thanks for sharing.  8-)
Title: Re: Unpurged drawing....
Post by: ronjonp on January 06, 2016, 02:57:04 PM
Here's (http://www.theswamp.org/index.php?topic=9433.msg121330#msg121330) a tool as well.

That's exactly what I used to diagnose the drawing - a great utility from MP.
Yup .. I've been using it for years :). It's amazing how littered drawings are nowadays.
Title: Re: Unpurged drawing....
Post by: Squirltech on January 06, 2016, 03:03:04 PM
It's amazing how littered drawings are nowadays.

We do quite a large amount of plat production here and the drawing with the least amount of objects will have the largest file size ever! It's all from doing a "save as" on a drawing that was done a year ago and just reusing it over and over and over...  :rolleyes2:

Some of our production techs don't even know how to start with a TEMPLATE or how to create a NEW drawing.  :grumpy:

Most of this has been corrected by now but once in a while we'll come across one of those "old balloon" drawings.
Title: Re: Unpurged drawing....
Post by: El Bachaco on January 07, 2016, 01:45:16 PM
Saludos Amigos ..... months ago I got a problem with me a file with very little information but large ..... I was suffering for several days until I got the solution ...... Got Somewhere following hotfix and hallelujah .... problem solved .....
the file is reduced test4.dwg to 74k ......

Command: NETLOAD
Command: DGNPURGE
Purged 1463 unreferenced complex linetype records (of 1463).
Purged 136575 unreferenced strokes (of 136575).
Command:
Command:
Command: _qsave Updating Indexes for block *Model_Space
Done.
Updating Indexes for block *Model_Space
Done.

the address is https://knowledge.autodesk.com/support/autocad/downloads/caas/downloads/content/autocad-C2-AE-dgn-hotfix.html?v=2013

excuse the English .... bye
Title: Re: Unpurged drawing....
Post by: Andrea on January 07, 2016, 02:31:20 PM
Thank you Guys..

Hi Lee,..
Question...how did you find that it was the "acad_dgnlinestylecomp" dict ?
Title: Re: Unpurged drawing....
Post by: ronjonp on January 07, 2016, 02:48:53 PM
Thank you Guys..

Hi Lee,..
Question...how did you find that it was the "acad_dgnlinestylecomp" dict ?
http://www.theswamp.org/index.php?topic=50734.msg558684#msg558684
Title: Re: Unpurged drawing....
Post by: Andrea on January 07, 2016, 03:17:25 PM
Thank you Guys..

Hi Lee,..
Question...how did you find that it was the "acad_dgnlinestylecomp" dict ?
http://www.theswamp.org/index.php?topic=50734.msg558684#msg558684

Sorry,..my poor English...
I mean,...without this great tool....where do you start for looking at ?
after purge and audit,..what must be the next step to look ?
the fact is that each problem have a solution...but I resolve most of them by a combinaison of "logic" and "deduction" and make test for each steps.
but when I can't found any more steps....how you guys doing to find out what the problem can be ?
search on the net,...ok,...but having the answer do not tell me why this issue is present and how can I found the right direction to look at..
it's like proxy's entities...who we never know wich kind of proxy's are..

maybe I'm not clear again...sorry for that..
thank you.
Title: Re: Unpurged drawing....
Post by: qwrtz on January 07, 2016, 04:05:22 PM
Doesn't the -exporttoautocad command get rid of all the proxies? Explodes them into simple Autocad entities, I thought.

Any time Autocad tells me there are proxies in a file I'm opening, I use that right away.
Title: Re: Unpurged drawing....
Post by: dgorsman on January 07, 2016, 05:07:26 PM
Thank you Guys..

Hi Lee,..
Question...how did you find that it was the "acad_dgnlinestylecomp" dict ?
http://www.theswamp.org/index.php?topic=50734.msg558684#msg558684

Sorry,..my poor English...
I mean,...without this great tool....where do you start for looking at ?
after purge and audit,..what must be the next step to look ?
the fact is that each problem have a solution...but I resolve most of them by a combinaison of "logic" and "deduction" and make test for each steps.
but when I can't found any more steps....how you guys doing to find out what the problem can be ?
search on the net,...ok,...but having the answer do not tell me why this issue is present and how can I found the right direction to look at..
it's like proxy's entities...who we never know wich kind of proxy's are..

maybe I'm not clear again...sorry for that..
thank you.

Drawing size has to come from somewhere, and not everything is an entity (line, circle, etc.).  A lot of size comes down to data objects, which can be attached to entities or the drawing itself.  The latter is one of the first places I look, checking for various non-standard dictionaries (like AEC and AutoPLANT gunk).
Title: Re: Unpurged drawing....
Post by: Lee Mac on January 07, 2016, 05:42:11 PM
Thank you Guys..

Hi Lee,..
Question...how did you find that it was the "acad_dgnlinestylecomp" dict ?
http://www.theswamp.org/index.php?topic=50734.msg558684#msg558684

Sorry,..my poor English...
I mean,...without this great tool....where do you start for looking at ?
after purge and audit,..what must be the next step to look ?

Aside from an obvious abundance of graphical entities, I would simply look for collections (including dictionaries) which contain large numbers of objects - of course, MP's 'Counts' program performs this analysis automatically for you, making it very easy to identify such bloated collections.
Title: Re: Unpurged drawing....
Post by: Patrick_35 on January 11, 2016, 10:38:38 AM
Hi Andrea

You can try http://www.blog-cao.com/article/programmation/jav-autocad-purger-dessin-nettoyer-vide/ (http://www.blog-cao.com/article/programmation/jav-autocad-purger-dessin-nettoyer-vide/)

Et en plus, il est en français  8-)

@+
Title: Re: Unpurged drawing....
Post by: Andrea on January 11, 2016, 05:19:26 PM
Thank you all for your response...

I already have a cleaning tool who clean all...
Unfortunatly I've discovered a little issue with it...
who do not purge DGN linetype...what ever the option is checked or not..
So,..that's why I've asked questions...
I thought that the DGN was purged by running my tools..

ppfft...shame on me.. :wideeyed2:

Thanks again