Author Topic: Unpurged drawing....  (Read 5131 times)

0 Members and 1 Guest are viewing this topic.

Andrea

  • Water Moccasin
  • Posts: 2372
Unpurged drawing....
« 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.
Keep smile...

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: Unpurged drawing....
« Reply #1 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. )
« Last Edit: January 06, 2016, 02:37:44 PM by Lee Mac »

ronjonp

  • Needs a day job
  • Posts: 7529
Re: Unpurged drawing....
« Reply #2 on: January 06, 2016, 02:41:19 PM »
Here's a tool as well.

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: Unpurged drawing....
« Reply #3 on: January 06, 2016, 02:48:20 PM »
Here's a tool as well.

That's exactly what I used to diagnose the drawing - a great utility from MP.

Squirltech

  • Newt
  • Posts: 136
Re: Unpurged drawing....
« Reply #4 on: January 06, 2016, 02:55:37 PM »
That's pretty sweet! Thanks for sharing.  8-)
"The only thing left to do is everything" - Jesse James

ronjonp

  • Needs a day job
  • Posts: 7529
Re: Unpurged drawing....
« Reply #5 on: January 06, 2016, 02:57:04 PM »
Here's 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.

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Squirltech

  • Newt
  • Posts: 136
Re: Unpurged drawing....
« Reply #6 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.
"The only thing left to do is everything" - Jesse James

El Bachaco

  • Newt
  • Posts: 26
Re: Unpurged drawing....
« Reply #7 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

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Unpurged drawing....
« Reply #8 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 ?
Keep smile...

ronjonp

  • Needs a day job
  • Posts: 7529
Re: Unpurged drawing....
« Reply #9 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

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Unpurged drawing....
« Reply #10 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.
« Last Edit: January 07, 2016, 03:47:56 PM by Andrea »
Keep smile...

qwrtz

  • Newt
  • Posts: 22
Re: Unpurged drawing....
« Reply #11 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.

dgorsman

  • Water Moccasin
  • Posts: 2437
Re: Unpurged drawing....
« Reply #12 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).
If you are going to fly by the seat of your pants, expect friction burns.

try {GreatPower;}
   catch (notResponsible)
      {NextTime(PlanAhead);}
   finally
      {MasterBasics;}

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: Unpurged drawing....
« Reply #13 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.

Patrick_35

  • Guest
Re: Unpurged drawing....
« Reply #14 on: January 11, 2016, 10:38:38 AM »