Renaming several attributes the same in a block

Renaming several attributes the same in a block

cjshaw14
Enthusiast Enthusiast
345 Views
4 Replies
Message 1 of 5

Renaming several attributes the same in a block

cjshaw14
Enthusiast
Enthusiast

Per the attached example, I'm trying to create a block where the numbers 1-8 remain the same but the prefix X for each can be an attribute changed all at once when copying and pasting the block.

I need to make 20 copies of the same block which would then have the X replaced going in alphabetical order A-T.

I realize I could just leave X as text and do a find and replace but wondering if there was another way.

Thanks

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

pendean
Community Legend
Community Legend

"all at once" is not a built-in ability for attribute edits if you don't want to use Find&Replace.

pendean_0-1709668487010.png

 

 

Which year version of LT are you using by chance? LT2024 added LISP ability so if you want to give up on typing core commands and customize there might be an option there.

0 Likes
Message 3 of 5

cjshaw14
Enthusiast
Enthusiast

Thanks for the reply-

I'm using LT 2024 with the LISP option and looked into some commands someone had programmed from another company about 15 years ago.  None of them related to my question but I tried a few for fun then opened to look at the code and got lost on the first line. 

I originally made each of the X's an attribute (called SLOT) then wrote as a block, attached updated, but then came up with eight rows to change the X to another letter. That's where I thought there should be a quicker way, thus the question.

Thanks

0 Likes
Message 4 of 5

pendean
Community Legend
Community Legend

@cjshaw14 wrote:

...I'm using LT 2024 with the LISP option and looked into some commands someone had programmed from another company about 15 years ago.  None of them related to my question but I tried a few for fun then opened to look at the code and got lost on the first line. 


I recommend you start a new post in the dedicated LISP forum (link below), in our post title list LT2024 as your software (and in your post text body too), then repeat what you initially posted here along with that excellent sample DWG file. You'll get what you need there I'm confident of it

https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/bd-p/130 

 

0 Likes
Message 5 of 5

cjshaw14
Enthusiast
Enthusiast

Ok, will do, thanks again for the help!

0 Likes