Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Layer name update lisp

2 REPLIES 2
Reply
Message 1 of 3
kameron1967
719 Views, 2 Replies

Layer name update lisp

Does anyone know of a routine to export the layer names into a CSV file, then from that file, I can add a second column containing the modified layer names and merge the previous layer name with the layer name that follows it.  Example

 

Drawing1 -> drawing1.csv containing the following layers:

Layer1

Layer2
Layer3

 

Import modified drawing1.csv file and merge layer1 with layer 1A, etc.

Layer1,Layer1A

Layer2,Layer2A

Layer3,Layer3A

 

Ideally, I'd like to be able to choose a file based on its file name so I can run it individually or in a batch.

 

Thanks in advance. 🙂

 

2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: kameron1967

I think you can probably accomplish this with the layer translator (laytrans)  Layer Translator Help.

 

You can create a reference file w/ the layer names & properties you want to end up with. Then save a mapping file that translates old layer names to the new names you created and run it in any drawing you need to.

Message 3 of 3
kameron1967
in reply to: Anonymous

Okay, let me check into that. Thanks Shneuph!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost