Author Topic: dwg file 42MB, but nothing in dwg!  (Read 14622 times)

0 Members and 3 Guests are viewing this topic.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: dwg file 42MB, but nothing in dwg!
« Reply #15 on: December 03, 2007, 02:22:22 PM »
In my opinion Robert there is nothing bloated about the drawing per se.

Let's start with a simple point. Without an extension dictionary or xdata, a point requires about 63 bytes of storage space (entity type, coordinates, layering info, color etc).

Your drawing sports 457162 entities in modelspace.

Using a nominal 63 bytes per, that yields a drawing close to 27.5 MB (disk image will be bigger), so the 42 MB is reasonable assuming the majority of entities in the drawing are more complex than points.

Having said that, of those 457162 entities it's quite possible many of them are bogus / superfluous -- it's not too much of a reach to assume it could duplicated / superfluous instances of some of those 478 anonymous block definitions. Please note that the number beside the block name in that report identifies the number of entities defining the block, not the block instance count.

What does this statement (sslength (ssget "x" '((0 . "insert")(2 . "`*U*")))) return?
« Last Edit: December 03, 2007, 02:25:47 PM by MP »
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

Notsober

  • Guest
Re: dwg file 42MB, but nothing in dwg!
« Reply #16 on: December 03, 2007, 02:25:45 PM »
I've been hearing about layer filters. We don't use them here at my office, but if there were a fat chance of that being the problem, I don't find any layer filters to delete.

I basically have a blank dwg (black background, with nothing *visible* to select) that's 42 megs and growing!
So you see nothing in model space?

You have a ton of stuff in model space
Quote
Modelspace.Count = 457162
I literally selected everything and erased it, purged it, saved it, then reopened it before I ran COUNTS. So to answer your question, yes I see NOTHING in modelspace and nothing in both paperspace layouts. There are still 6 layers left in the dwg that I cannot get rid of. So that tells me there are hidden objects that I don't know how to "appear" or at least reveal themselves.

deegeecees

  • Guest
Re: dwg file 42MB, but nothing in dwg!
« Reply #17 on: December 03, 2007, 02:27:37 PM »
In the Layers Dialog, set the layer filter status to "Show All Layers", then:

Thaw all layers
Turn all layers ON
Then erase all
Then Purge

I know it sounds easy, but I'm thinking you just may be missing these steps.

Notsober

  • Guest
Re: dwg file 42MB, but nothing in dwg!
« Reply #18 on: December 03, 2007, 02:27:51 PM »
In my opinion Robert there is nothing bloated about the drawing per se.

Let's start with a simple point. Without an extension dictionary or xdata, a point requires about 63 bytes of storage space (entity type, coordinates, layering info, color etc).

Your drawing sports 457162 entities in modelspace.

Using a nominal 63 bytes per, that yields a drawing close to 27.5 MB (disk image will be bigger), so the 42 MB is reasonable assuming the majority of entities in the drawing are more complex than points.

Having said that, of those 457162 entities it's quite possible many of them are bogus / superfluous -- it's not too much of a reach to assume it could duplicated / superfluous instances of some of those 478 anonymous block definitions. Please note that the number beside the block name in that report identifies the number of entities defining the block, not the block instance count.

What does this statement (sslength (ssget "x" '((0 . "insert")(2 . "`*U*")))) return?
returns: ; error: bad argument type: lselsetp nil

Notsober

  • Guest
Re: dwg file 42MB, but nothing in dwg!
« Reply #19 on: December 03, 2007, 02:29:29 PM »
In the Layers Dialog, set the layer filter status to "Show All Layers", then:

Thaw all layers
Turn all layers ON
Then erase all
Then Purge

I know it sounds easy, but I'm thinking you just may be missing these steps.


I cannot DELETE what AutoCAD says is still in use!

deegeecees

  • Guest
Re: dwg file 42MB, but nothing in dwg!
« Reply #20 on: December 03, 2007, 02:31:17 PM »
Check the xref, and image manager's to see if there are unreferenced images/xref's?

T.Willey

  • Needs a day job
  • Posts: 5251
Re: dwg file 42MB, but nothing in dwg!
« Reply #21 on: December 03, 2007, 02:31:45 PM »
Does this show you anything
Code: [Select]
(vlax-for lo (vla-get-Layouts (vla-get-Activedocument (vlax-get-Acad-Object)))
(vlax-for obj (vla-get-Block lo)
(vla-put-Visible obj :vlax-true)
)
)
This should make everything visible in the drawing that has been turned invisible.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

Notsober

  • Guest
Re: dwg file 42MB, but nothing in dwg!
« Reply #22 on: December 03, 2007, 02:33:58 PM »
Does this show you anything
Code: [Select]
(vlax-for lo (vla-get-Layouts (vla-get-Activedocument (vlax-get-Acad-Object)))
(vlax-for obj (vla-get-Block lo)
(vla-put-Visible obj :vlax-true)
)
)
This should make everything visible in the drawing that has been turned invisible.

returns a 'nil'

Notsober

  • Guest
Re: dwg file 42MB, but nothing in dwg!
« Reply #23 on: December 03, 2007, 02:35:35 PM »
Check the xref, and image manager's to see if there are unreferenced images/xref's?

NOBODY in my office knows how to use xref. And we certainly don't use images.

But no, there aren't any xrefs nor any images in the dwg.

T.Willey

  • Needs a day job
  • Posts: 5251
Re: dwg file 42MB, but nothing in dwg!
« Reply #24 on: December 03, 2007, 02:36:21 PM »
Does this show you anything
Code: [Select]
(vlax-for lo (vla-get-Layouts (vla-get-Activedocument (vlax-get-Acad-Object)))
(vlax-for obj (vla-get-Block lo)
(vla-put-Visible obj :vlax-true)
)
)
This should make everything visible in the drawing that has been turned invisible.

returns a 'nil'
As it should, but did anything show up in model space?  If not, then maybe a regen.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

Notsober

  • Guest
Re: dwg file 42MB, but nothing in dwg!
« Reply #25 on: December 03, 2007, 02:38:33 PM »
Does this show you anything
Code: [Select]
(vlax-for lo (vla-get-Layouts (vla-get-Activedocument (vlax-get-Acad-Object)))
(vlax-for obj (vla-get-Block lo)
(vla-put-Visible obj :vlax-true)
)
)
This should make everything visible in the drawing that has been turned invisible.

returns a 'nil'
As it should, but did anything show up in model space?  If not, then maybe a regen.
no, nothing showed up. Regen didn't do anything either except think too long.

jonesy

  • SuperMod
  • Seagull
  • Posts: 15568
Re: dwg file 42MB, but nothing in dwg!
« Reply #26 on: December 03, 2007, 02:38:48 PM »
Are there any zero length lines or text in there? (sorry if this has already been asked)
Thanks for explaining the word "many" to me, it means a lot.

Notsober

  • Guest
Re: dwg file 42MB, but nothing in dwg!
« Reply #27 on: December 03, 2007, 02:40:06 PM »
Are there any zero length lines or text in there? (sorry if this has already been asked)

I don't know. How would I check for that?

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: dwg file 42MB, but nothing in dwg!
« Reply #28 on: December 03, 2007, 02:40:17 PM »
Very interesting.

Just to be clear. You purged the drawing ad infinitum, ran the counts report, and then subsequently tried that lisp statement and it bombed?

It suggests the anonymous block definitions are referenced yet there are no anonymous block instances. Like I mentioned earlier, could be a nesting issue.

Aside from the visibility issue (Tim, to be truly effective you need to perform same on every entity in every block definition to absolutely ensure / force visibility) you can also force qtext to force display of text / attribute entities that sport no content (i.e., empty string). I remember diagnosing that very sick instrumentation drawings about a decade ago that were bloated. Qtext revealed approximately 70000 empty text entities.

Try qtext [enter] on [enter] regenall [enter] zoom [enter] extents [enter].

Poof, "OMG, it's full of stars!"

There's other maladies like zero length lines et al ... I'm intrigued Robert, care to send me a copy of the drawing? Results as confidential as you want.

I've got about 15 minutes before my wife gets home and the honey dos start.

cad labs at g mail dot com
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

Notsober

  • Guest
Re: dwg file 42MB, but nothing in dwg!
« Reply #29 on: December 03, 2007, 02:41:32 PM »
oh, and there are 3 dwgs like this now... he just informed me. Dwg files that are entirely too large. Never do we have dwgs larger than 3mb!