rename only selected blocks

rename only selected blocks

adaptacad
Advocate Advocate
1,564 Views
7 Replies
Message 1 of 8

rename only selected blocks

adaptacad
Advocate
Advocate

Hello, does anyone have an easy way to rename ONLY the selected blocks. I select and rename only my selection set.
Thank you in advance .

0 Likes
Accepted solutions (2)
1,565 Views
7 Replies
Replies (7)
Message 2 of 8

Shneuph
Collaborator
Collaborator

Are you asking for a way to do this, period?  Or do you specifically need it to be done through LISP?

---sig---------------------------------------
'(83 104 110 101 117 112 104 64 71 109 97 105 108 46 99 111 109)
0 Likes
Message 3 of 8

devitg
Advisor
Advisor

@adaptacad  , 

selected by a wildcard name ?

rename by a : newname  list ? 

Maybe if you upload a sample.dwg and more data it will be easy to help you 

 

 

0 Likes
Message 4 of 8

adaptacad
Advocate
Advocate

Not necessarily by LISP, I need to rename some selected blocks.

NOTE: Note the RENAME command does not work because I need to select the blocks, ONLY THE SELECTED ones.

0 Likes
Message 5 of 8

Shneuph
Collaborator
Collaborator

This is how I always do it if I have a block in a dwg and I need some of them to be a new block.

 

I hope it's clear.

f83161bb-86f8-4447-b496-af857c16de0a,640,710

 
 
 
---sig---------------------------------------
'(83 104 110 101 117 112 104 64 71 109 97 105 108 46 99 111 109)
0 Likes
Message 6 of 8

Kent1Cooper
Consultant
Consultant
Accepted solution

@adaptacad wrote:

....

NOTE: Note the RENAME command does not work because I need to select the blocks, ONLY THE SELECTED ones.


That means you're going to need to have another Block definition with the different name [even if its contents are identical], and replace  those selected Blocks with it.  Once you have that other Block definition established, you can use BlockReplace.lsp with its BRS command, available >here<, to replace selected Blocks with that.

Kent Cooper, AIA
0 Likes
Message 7 of 8

Shneuph
Collaborator
Collaborator
Accepted solution

...well... there was supposed to be a screencast but I don't see it in that last post now..

https://knowledge.autodesk.com/community/screencast/f83161bb-86f8-4447-b496-af857c16de0a

 

Maybe that works?

---sig---------------------------------------
'(83 104 110 101 117 112 104 64 71 109 97 105 108 46 99 111 109)
Message 8 of 8

adaptacad
Advocate
Advocate

@Shneuph  @Kent1Cooper Both solutions work, thank you very much!