Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Purge the contents of a block.

5 REPLIES 5
Reply
Message 1 of 6
Anonymous
348 Views, 5 Replies

Purge the contents of a block.

Is there a method available which would allow me to purge the contents of a block without exploding and rebuilding it? I continually receive drawings from 3rd parties which have blocks or xrefs bound into them which weren't purged prior to insertion so I end up with layers and linetypes in my drawings which aren't actually used anywhere but I can't prge them as they are referenced inside a block. I know it's possible to alter linetypes etc within a block without reassembling it but being able to purge a block or bound ref would be pretty useful if it could be achieved.

Anybody able to offer any guidance on this?
5 REPLIES 5
Message 2 of 6
Anonymous
in reply to: Anonymous

The purge command has the option to purge nested items. Running this several
times with purgeall will get rid of any items left unreferenced.

Any program to get rid of the contents of a block would not make that block
purgeable. It would just make that block invisible. How would a program
know which items to delete anyway?

wrote in message news:6104993@discussion.autodesk.com...
Is there a method available which would allow me to purge the contents of a
block without exploding and rebuilding it? I continually receive drawings
from 3rd parties which have blocks or xrefs bound into them which weren't
purged prior to insertion so I end up with layers and linetypes in my
drawings which aren't actually used anywhere but I can't prge them as they
are referenced inside a block. I know it's possible to alter linetypes etc
within a block without reassembling it but being able to purge a block or
bound ref would be pretty useful if it could be achieved. Anybody able to
offer any guidance on this?
Message 3 of 6
Anonymous
in reply to: Anonymous

"I continually receive drawings from 3rd parties which have blocks or xrefs bound into them which weren't purged prior to insertion "

.. tell them not to do that.

🙂

Bob
Message 4 of 6
Anonymous
in reply to: Anonymous

> {quote:title=Guest wrote:}{quote}
> The purge command has the option to purge nested items. Running this several
> times with purgeall will get rid of any items left unreferenced.
>

This isn't the case as I experience it. I have created a drawing with no geometry in there - just a bunch of layers that can be purged out. If I then xref that into a new drawing and bind it in I can then no longer purge out the extraneous layers and so end up with layers in my drawing that have no entities on them and can't be purged.

This is the kind of thing I want to get rid of - I don't want to remove any 'actual' content from the blocks - just the superfluous stuff that can be purged out if I explode all the blocks.

Hope this makes sense.
Message 5 of 6
Anonymous
in reply to: Anonymous

You must purge layers in the referenced xrefs. Such purging cannot be done
from the host without using a refedit command and actually having the files
(your drawing was missing the original source xrefs)
It looks like the source files had other xrefs bound which makes layer
proliferation worse. If a system of drawings uses the same layer names, it
is of no advantage to bind xrefs as xrefs vs insert.

If you detach the xrefs that have no useful objects, then you are left with
only 2 layers: 0 and defpoints, neither of which can be purged.

wrote in message news:6105162@discussion.autodesk.com...
> {quote:title=Guest wrote:}{quote} > The purge command has the option to
> purge nested items. Running this several > times with purgeall will get
> rid of any items left unreferenced. > This isn't the case as I experience
> it. I have created a drawing with no geometry in there - just a bunch of
> layers that can be purged out. If I then xref that into a new drawing and
> bind it in I can then no longer purge out the extraneous layers and so end
> up with layers in my drawing that have no entities on them and can't be
> purged. This is the kind of thing I want to get rid of - I don't want to
> remove any 'actual' content from the blocks - just the superfluous stuff
> that can be purged out if I explode all the blocks. Hope this makes sense.
Message 6 of 6
dgorsman
in reply to: Anonymous


In my experience, they don't even know the blocks are there. If they do know, they just shrug their shoulders and say that stuff came with the drawing, they didn't originate it, no they don't know where the drawing came from, we don't have time to clean that up, etc., just passing the buck.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost