Multiple layer rename not working

Multiple layer rename not working

apstevenson
Advocate Advocate
1,592 Views
3 Replies
Message 1 of 4

Multiple layer rename not working

apstevenson
Advocate
Advocate

Hi,

I'm having trouble getting some layers renamed.

I'm trying to add the word 'Plan' to the end of number of layers.

See attached for my input, but when I click OK, I just get ' RENAME No items renamed'

 

What am I doing wrong?

 

Thanks

0 Likes
Accepted solutions (1)
1,593 Views
3 Replies
Replies (3)
Message 2 of 4

cadffm
Consultant
Consultant

Nothing, except to expect it works this way, but it doesn't.

Rename it by hand or by script, but your case isn't possible in one step by using the rename-dialog.

Sebastian

0 Likes
Message 3 of 4

apstevenson
Advocate
Advocate

Thanks for the reply.

I'm on LT so can't use scripts.

Do you know what the problem is, so I know going forward what will work, and what won't?

Thanks.

0 Likes
Message 4 of 4

cadffm
Consultant
Consultant
Accepted solution

Sorry, no time to explain my whole knowledge in a minute about RENAME and -RENAME, what i learned in many years.

 

But: "I'm on LT so can't use scripts." is wrong. There aren't differences between AutoCAD and AutoCAD LT

What you mean is that AutoCAD LT have no API (LISP,VBA,.NET,C++   ),

thats right, but SCRIPTs are simple textfile who contains normal commands and values for commandline-input.

It more like a MenuMacro, what is also available in LT version (each button stores and uses a menumacro).

Do you know what the problem is, so I know going forward what will work, and what won't?

 

Ho can i get Layernames from ACAD to my Textfile?

1. Mark the Layer in Layer properties manager and use CTRL+C/CTRL+V

2. Command: -LAYER, Option ? And Copy the Layernames from yout TextScreen [F2]

 

then write the Script to use the -RENAME command:

 

<note: it isn't meanful for 5 Layers, but for 100x 5 Layers it is and RENAME is not the best command for Script-Beginners>

;;;copy from naxt line to

_-RENAME LAYER "MYLAYERa"

"MYLAYERa NEW"

_-RENAME LAYER "MYLAYERaa"

"MYLAYERaa NEW"

_-RENAME LAYER "MYLAYERaaa"

"MYLAYERaaa NEW"

_-RENAME LAYER "MYLAYERaaaa"

"MYLAYERaaaa NEW"

 

;; copy until the line above this line and paste it into a Textfile with name TEST.scr or

paste it into your commandline CTRL+V

Create  DWG with the Layers MYLAYERa ->MYLAYERaaaa and test this sample!

 

 

 

 

Sebastian