- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I often have drawings with a lot of layers that I want to rename. I want to be able to change the entire name, rather than just replace certain characters in the name and I want to be able to do this in mass, not by renaming one layer at a time. Ideally, I want to be able to paste a list of old layer names in the command window (or lisp itself if it is not possible to do so in the command window) and then paste a list of new layer names that the lisp will use to rename the original layers.
Example
Old layer names: SOL-MET-STATION, C-SITE-COLL, AC-01
New layer names: E-COMM-MET, E-COND-BORE, E-LVAC-01-01
I came across a few renaming lisps in my google search for existing lisps, but I didn't find one that does this specifically. I think using the "-layer" or "rename" commands in the lisp would be useful, but don't really know much about writing lisps so I was hoping someone could offer a solution.
I saw a lisp that structured old and new layer names like this:
(renlay "ARSTAIR" "A-Flor-Strs") (renlay "ARPARTITION" "A-Flor-Tptn") (renlay "ARWOOD" "A-Flor-Wdwk") (renlay "ARFURNITURE" "A-Furn")
but I would rather be able to paste in all of the old names at once and then all of the new names at once. However, if that can't be done, I'm okay with a lisp that would use the format above.
Feel free to let me know if there is a better way to do this without a lisp.
Solved! Go to Solution.