Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Could anybody tell me why I can't purge unused layers?

329 views
Skip to first unread message

Olaf

unread,
Jul 6, 1998, 3:00:00 AM7/6/98
to

Thank you all for quick response. Unfortunately I didn't manage to get
rid of the layers. I did PURGE All, exploded all blocks including
nested ones to find the objects on layers I wanted to delete, I did
all you guys suggested - still no result.
Best Regards
Olaf

Brendan O'Hare

unread,
Jul 6, 1998, 3:00:00 AM7/6/98
to

Try using the SSX.LSP selection set routine to select the layer entities.
You can then list previous before erasing the unwanted entities.

Regards Brendan O'Hare

Olaf wrote in article <35a00a83...@news.newsguy.com>...
> I tried to delete a couple of unused layers both with the PURGE
> command and from LAYER AND LINETYPE PROPERTIES but AutoCAD 14 wouldn't
> let me. They were neither 0 or DEFPOINT nor X-Ref dependent layers.
> The only explanation I can think about is that those layers still
> contain some object, but I can't see or erase them. The layers are not
> locked or frozen - checked in model space and in all vieports. I
> checked all block in the drawing to exclude possibility of nested
> block on different layer.
> What is wrong then? Please help.
> Olaf
>

Nobuhiro Haketa

unread,
Jul 6, 1998, 3:00:00 AM7/6/98
to

Olaf,

There may be some invisible objects on the layer that prevent it from
being purged.
You can delete ALL objects including those invisible objects in layer
"somelayer" by this:

ERASE[Enter]
(ssget "x" ((8 . "somelayer")))[Enter]
[Enter]

--
Nobuhiro Haketa <nobu...@trialsoftware.com>
Trial Software Laboratories, Japan

Owen Wengerd

unread,
Jul 6, 1998, 3:00:00 AM7/6/98
to

Olaf:

Is the problem layer hidden in one or more paperspace viewports? You can
DXFOUT the file, then search the .dxf file for instances of the layer name,
to determine where it's used. If you don't care where it's used, but just
want to purge it, you can use my SuperPurge utility
http://www.manusoft.com/spurge.htm ). :)
--
Owen Wengerd
President, ManuSoft ==> http://www.manusoft.com
VP Americas, CADLock, Inc. ==> http://www.cadlock.com

Olaf (Olaf) wrote in message <35a0624f...@news.newsguy.com>...

Arlo C. Shaver

unread,
Jul 6, 1998, 3:00:00 AM7/6/98
to

WBlock the drawing to itself and re-open it .

Ian A. White wrote:

> On Sun, 05 Jul 1998 05:35:12 GMT, Olaf (Olaf) wrote:
>
> > I tried to delete a couple of unused layers both with the PURGE
> > command and from LAYER AND LINETYPE PROPERTIES but AutoCAD 14 wouldn't
> > let me. They were neither 0 or DEFPOINT nor X-Ref dependent layers.
> > The only explanation I can think about is that those layers still
> > contain some object, but I can't see or erase them. The layers are not
> > locked or frozen - checked in model space and in all vieports. I
> > checked all block in the drawing to exclude possibility of nested
> > block on different layer.
> > What is wrong then? Please help.
>

> You probably have a block definition which uses the layers. Do a
> Purge of Blocks and see if any can be purged. If they can't then the
> blocks themselves are referenced.
>
> --
>
> Regards,
>
> Ian A. White, CPEng
> WAI Engineering
> Sydney 2000
> Australia
>
> Ph: +61 418 203 229
> Fax: +61 2 9622 0450
>
> Junk e-mail will be returned, as is, to the sender's host system.


Mark77

unread,
Jul 6, 1998, 3:00:00 AM7/6/98
to

Probably invisible blocks. They could be buried pretty deep within other
blocks. If you wish you could e-mail me the dwg (preferred zipped) and I
could see what I could find.

reade...@purwater.com

Olaf (Olaf) wrote in message <35a00a83...@news.newsguy.com>...


>I tried to delete a couple of unused layers both with the PURGE
>command and from LAYER AND LINETYPE PROPERTIES but AutoCAD 14 wouldn't
>let me. They were neither 0 or DEFPOINT nor X-Ref dependent layers.
>The only explanation I can think about is that those layers still
>contain some object, but I can't see or erase them. The layers are not
>locked or frozen - checked in model space and in all vieports. I
>checked all block in the drawing to exclude possibility of nested
>block on different layer.
>What is wrong then? Please help.

>Olaf

Michael Rounds

unread,
Jul 6, 1998, 3:00:00 AM7/6/98
to

Since you mention viewports, check and see if the offending layers are
marked as "frozen in current viewport". This status uses xdata 1003
code which references the layer table, and thus the layer is 'used'.
Thaw the layer in the current viewport then you can purge it.

Michael
______________________________________________________________________
Michael Rounds, AIA Email: rou...@ar7.com
CADesign
Boulder, Colorado USA For true multitasking, try orienteering

On Sun, 05 Jul 1998 05:35:12 GMT, Olaf (Olaf) wrote:

Jan Hindøy Ingeniørtenester

unread,
Jul 6, 1998, 3:00:00 AM7/6/98
to

Olaf,

Perhaps there are some 'zero length text strings' in the drawing. If
somebody have edited the text and deleted all the characters, the text
is still there, but you cannot see it. Try to turn QTEXT ON, and see
if there are some small rectangles in places you don't expect to see
any entities. Erase them....


Jan

S Beresford

unread,
Jul 7, 1998, 3:00:00 AM7/7/98
to
Olaf (Olaf) writes: > I tried to delete a couple of unused layers both with the PURGE

> command and from LAYER AND LINETYPE PROPERTIES but AutoCAD 14 wouldn't
> let me. They were neither 0 or DEFPOINT nor X-Ref dependent layers.
> The only explanation I can think about is that those layers still
> contain some object, but I can't see or erase them. The layers are not
> locked or frozen - checked in model space and in all vieports. I
> checked all block in the drawing to exclude possibility of nested
> block on different layer.
> What is wrong then? Please help.
> Olaf

Still not sorted in R14 eh? Sometimes the only solution to this
irritating problem is to WBLOCK the required elements to a new drawing.
This usually gets rid of the 'phantom' layers.

P/C Simon

unread,
Jul 8, 1998, 3:00:00 AM7/8/98
to
Hello,

instead of PURGE you should use the following statement:

COMMAND: WBlock
Filename: <drawing file>
Blockname: *

Leave the drawing with QUIT (no savings) and open it again. If these layers
still remain, they are referenced by somewhat I don't know either.

Andreas

stephe...@my-dejanews.com

unread,
Jul 9, 1998, 3:00:00 AM7/9/98
to
In article <#qQTEAPq9GA.207@upnetnews05>,

"Mark77" <reade...@purwater.com> wrote:
>
> Probably invisible blocks. They could be buried pretty deep within other
> blocks. If you wish you could e-mail me the dwg (preferred zipped) and I
> could see what I could find.
>
> reade...@purwater.com
>
> Olaf (Olaf) wrote in message <35a00a83...@news.newsguy.com>...
> >I tried to delete a couple of unused layers both with the PURGE
> >command and from LAYER AND LINETYPE PROPERTIES but AutoCAD 14 wouldn't
> >let me. They were neither 0 or DEFPOINT nor X-Ref dependent layers.
> >The only explanation I can think about is that those layers still
> >contain some object, but I can't see or erase them. The layers are not
> >locked or frozen - checked in model space and in all vieports. I
> >checked all block in the drawing to exclude possibility of nested
> >block on different layer.
> >What is wrong then? Please help.
> >Olaf
>
>

My guess is that extended data has been attached to a layer. Yes, it is
possible to do this. If the extended data refers to a layer, then as far as
AutoCAD is concerned, it is a used layer. Therefore, it is not possible to
purge it.

This may *not* be the solution, but it just goes to show you, that sometimes
it is next to impossible to eradicate some things in a drawing once they are
created.

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum

Bill Gilliss

unread,
Jul 9, 1998, 3:00:00 AM7/9/98
to
I have found that layers from *DETACHED* XREF'd files can not be
purged if VISRETAIN is on and paperspace floating viewports have had
those layers specifically frozen or thawed. The problem is how to get
rid of those layers, without deleting the viewports in question, of
having other viewports forget which layers to display from other
XREFs...

R14.01

Owen Wengerd

unread,
Jul 9, 1998, 3:00:00 AM7/9/98
to
Bill Gilliss wrote in message <35A5524C...@iglou.com>...
>... The problem is how to get rid of those layers, without deleting

>the viewports in question, of having other viewports forget which
>layers to display from other XREFs...

Bill:

FYI, the solution is my SuperPurge utility

Bill Gilliss

unread,
Jul 10, 1998, 3:00:00 AM7/10/98
to
I guess I'm going to have to break down and try it out...
(Back in a minute...)

Owen: its almost 700K!!! Yowza. What *doesn't* it do?

Kyaw Soe

unread,
Jul 10, 1998, 3:00:00 AM7/10/98
to
Hello Olaf,

I've wblock'ed everything into another drawing or rename the layer to
something that you do use and/or copy another layer onto that and delete
the original layer.

I thought it might have been blocks defined on the layers but I can't
always find them.

I hope this helps.


Olaf wrote:
>
> I tried to delete a couple of unused layers both with the PURGE
> command and from LAYER AND LINETYPE PROPERTIES but AutoCAD 14 wouldn't
> let me. They were neither 0 or DEFPOINT nor X-Ref dependent layers.
> The only explanation I can think about is that those layers still
> contain some object, but I can't see or erase them. The layers are not
> locked or frozen - checked in model space and in all vieports. I
> checked all block in the drawing to exclude possibility of nested
> block on different layer.
> What is wrong then? Please help.
> Olaf

--

Regards,

Kyaw Soe | Ford Motor Company
Layout and Planning Engineer | GB-20/150, Arisdale Avenue
Global Paint Engineering | South Ockendon
Tel: 01708 858128 Fax: 01708 858981 | Essex RM15 5TJ
E-Mail: ks...@wams001.warley.ford.com | England

Owen Wengerd

unread,
Jul 10, 1998, 3:00:00 AM7/10/98
to
Bill:

It only does one thing, but it does it *extremely* well. <g>


--
Owen Wengerd
President, ManuSoft ==> http://www.manusoft.com
VP Americas, CADLock, Inc. ==> http://www.cadlock.com


Bill Gilliss wrote in message <35A58E88...@iglou.com>...

>[...]

Bob Carlson

unread,
Jul 11, 1998, 3:00:00 AM7/11/98
to

Olaf wrote:

> Thank you all for quick response. Unfortunately I didn't manage to get
> rid of the layers. I did PURGE All, exploded all blocks including
> nested ones to find the objects on layers I wanted to delete, I did
> all you guys suggested - still no result.
> Best Regards
> Olaf

Freeze all layers that have useful entities on them.

Then:

ERASE ALL

This command will find some things that you can not typically pick (e.g.
the paper space view port, the AVE_GLOBAL and AVE_RENDER blocks). You may
need to do this in paper space as well as model space. You still need to
unlock locked layers and purge after the erase command.

As always, save early, save often, do your experimenting on renamed/backup
files....you know the drill. This is VERY sharp tool, be careful!

Experts: Sorry if I am out of line, please tell me if this is reckless.

Bob Carlson


Loo...@cupola.com

unread,
Jul 11, 1998, 3:00:00 AM7/11/98
to
Olaf,

The first time that you insert a block in a drawing, AutoCAD adds the
definition of the block to the AutoCAD database. That definition includes
the name of the current layer when you inserted the block. Changing the
block to a new layer or erasing the block will NOT remove this layer name
from the block definition in AutoCAD's drawing database. That's why , the
first time you insert a new block or xref, it's good practice to stay on
layer 0 (which is in every AutoCAD drawing and can not be purged). THEN
change the block to layer you want. This is only true the first time a
block or xref is brought into a drawing. You can be on any layer you want
when you insert additional copies of the block or xref.

Another way to check out what is going on in your drawing is to DXFOUT the
drawing. Call up the DXF file with an ASCII text editor (like notepad or as
a text (nondocument) file in your favorite word processor) and search for the
offending layer name. Besides appearing in the layer table section of the
DXF file, it will also appear associated with some other entity in the
drawing. My guess is that it will appear in the block table section of the
DXF file, associated with some block name.

If that is the case, one way to the fix the problem is to start a new drawing
and insert the offending blocks on layer 0. Do this BEFORE you bring in the
problem drawing file. This will cause layer 0 to be associated with the block
definition, but not the actual blocks themselves. The layers associated with
the blocks will be in the ENTITIES table, where blocks are called INSERTS
(which have their own layer associations and refer to block definitions in the
BLOCK table).

Happy hunting.

Howard Partridge
Loo...@cupola.com

Olaf

unread,
Jul 13, 1998, 3:00:00 AM7/13/98
to
Thank you All for such a great responce. I've read all messages full
and checked most of them on my confounded drawing which is free of
unwanted layers now. Thank you once again for extra knowledge.
Olaf

0 new messages