Delete all blocks with a specific attribute

Delete all blocks with a specific attribute

Anonymous
Not applicable
851 Views
4 Replies
Message 1 of 5

Delete all blocks with a specific attribute

Anonymous
Not applicable

We use a plan note key block with an attribute to label plans. Is there a way to globally erase all the blocks with a specific value assigned to the attribute. For instance all the blocks used are named the same.. plankey... and the attributes are 1 to 100. I would like to globally select all plankey blocks with a 3 as an attribute and delete them. Is that possible?

 

Thanks for your help!

0 Likes
852 Views
4 Replies
Replies (4)
Message 2 of 5

ВeekeeCZ
Consultant
Consultant

Not using any of build-in commands, AFAIK.

But you can use a LISP routine. HERE is very the recent one written by Lee Mac. 

In case you're not aware of using LISPs, look HERE

0 Likes
Message 3 of 5

Ed__Jobe
Mentor
Mentor

Not OOB. It would require a custom lisp, vba or .net code.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 4 of 5

cadffm
Consultant
Consultant

For usual selections FIND (and QSELECT if you need more filter methods like Blockname, layer aso)

is good enough.

(Just an information for people who can not use such a tool solution)

 

Sebastian

Message 5 of 5

ВeekeeCZ
Consultant
Consultant

Sure, simple FIND is a very fine tool for this too! 

Can be searched in a selection, the result can be listed, can be re-selected as well... good one.

0 Likes