Community
AutoCAD LT Forum
Welcome to Autodesk’s AutoCAD LT Forums. Share your knowledge, ask questions, and explore popular AutoCAD LT topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Purge Blocks Within Blocks

10 REPLIES 10
Reply
Message 1 of 11
austinkb
1949 Views, 10 Replies

Purge Blocks Within Blocks

I have a file with a lot of un-used blocks that I am now purging. Most of the blocks are composed of other blocks. When I purge the first block, I then have a dozen+ new blocks that I have to purge.

 

Is there a way to purge all blocks within the original block I purge?

Labels (2)
10 REPLIES 10
Message 2 of 11
cadffm
in reply to: austinkb

Hi,

 

Look at the purge dialog and you will see the "Purge nested item" option

and also the "orphaned data" option should be on.

 

I some cases you have such a lot objects, sometime you need to run purge two times or more.

http://help.autodesk.com/view/ACD/2021/ENU/?guid=GUID-C6B62BBD-C363-4DC7-AF43-036A7B287473

 

Sebastian

Message 3 of 11
austinkb
in reply to: cadffm

I have both of those options selected and it does not resolve my issue. These blocks are from third party vendors so sometimes they will have literally a hundred blocks within the one block I am trying to purge out. Very time consuming to go through them all and purge time after time.

Message 4 of 11
cadffm
in reply to: austinkb

>>"I have both of those options selected "

That's all you can do, this and repeating the purge workflow.

 

Create a menu- macro or script to run 3x purge, so it is just one click for 3 times

Sample for 1xPurge RegApss and 2xPurge All

^C^C_.-PURGE;_reg;*;_no;_.-PURGE;_all;*;_no;_.-PURGE;_all;*;_no

 

 

Sebastian

Message 5 of 11
steven-g
in reply to: austinkb

You cannot purge blocks if they are used in your drawing, if you have one block containing other blocks in your drawing area then they are all considered to be used by AutoCAD. You might need to consider some other way of dealing with your blocks, posting a .dwg file with a detailed explanation of what you are trying to do would help see the problem (and a possible solution).

Message 6 of 11
austinkb
in reply to: steven-g

None of the blocks I am purging are in use.

 

So I made a new file with just 1 block as an example.

 

In this new drawing the function seems to be working fine. I purge the block and then it again asks if I would like to also purge the 11 nested blocks. For some reason on my main file I do not have this option....On my main file I would have to find these 11 blocks and re-purge them again.

Message 7 of 11
pendean
in reply to: austinkb

WLBOCK your offending block to create a unique DWG file of it, go into that new DWG and purge away.
Repeat for each offending block until you have a stack of clean external library files.

Message 8 of 11
cadffm
in reply to: austinkb

Which program (product version / Command: ABOUT) are you using?

I use AutoCAD 2020.1 and i have to run PURGE only one time to purge all unused blocks.

 

 

Sebastian

Message 9 of 11
steven-g
in reply to: austinkb

It sounds like you do have one of these top-level blocks inserted somewhere in your drawing, it is a question of finding it? Maybe on a layout or on a layer that is frozen. Have you tried qselect to find the offending block

Message 10 of 11
austinkb
in reply to: steven-g

I think I found the issue of why I cannot remove all the nested objects when I purge the block.

 

Purge Nested Items removes items only when you select one of the following options:

  • All Items or Blocks in the tree view
  • The Purge All button

I am not purging every un-used block in my drawing. So it looks like I cannot do what I want. It's not a huge issue, just some extra time to go back in and repeat the purging.

 

Thank you everyone for your help

Message 11 of 11
cadffm
in reply to: austinkb


@austinkb wrote:

I think I found the issue of why I cannot remove all the nested objects when I purge the block.

 

Purge Nested Items removes items only when you select one of the following options:

  • All Items or Blocks in the tree view
  • The Purge All button

That's right.

 

 

Sebastian

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

Post to forums  

Technology Administrators


Autodesk Design & Make Report