RENAME MULTIPLE LAYERS

RENAME MULTIPLE LAYERS

Anonymous
Not applicable
10,298 Views
3 Replies
Message 1 of 4

RENAME MULTIPLE LAYERS

Anonymous
Not applicable

Hi,

 

I want to rename two lyr names in autocad, for eg i have a layer called as 21-tree and 22-treeData. Then i want to rename it to treeBase and treeCandidate respectively.

 

Can anyone share a lisp routine or a lisp command to achieve this ?

 

I want user to run this command then  select layer which will be renamed as "treeBase" and select another layer and the lisp will rename this to treeData.

 

Any lisp please share.

 

Regards

 

 

0 Likes
10,299 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Message 3 of 4

falconbird
Advocate
Advocate

Try this. In the rename dialog box in the old name box, type 21-*. Once you click in the new name box all your layers are highlighted that have 21- in front of the layer name. In the new name box, type *base. If this works do the same with all your layers that have 22- in front of the layer name. The * is a wildcard. good luck.

Message 4 of 4

info8U79N
Community Visitor
Community Visitor

Thank you so much. This saved me days.

 

Type 21-* (In old name box)

Type base* (In New name box)

It will include spaces so if you want base with space after, Type base *

0 Likes