- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello
I am looking for a Lisp Utility to rename Blocks or Layers based on a CSV/TXT File ... And I don't find it !?
<<< CSV/TXT File >>> Something like that ...
old_1 ; new_a
bad 01 ; ok 101
charlie delta ; alpha bravo
etc ...
So the separator would be ";" and the Old and/or New name could contain special caracters (french / german /etc) / blank , etc ...
So I see the Lsp Routine like :
1) Question : Rename Blocks OR Layers (Default = Block) : ?
2) Question : Ask for the CSV/TXT File ...
3) Begin process
Check that in the current CSV Line, there is NO forbidden caracters ! If YES warning (with old & new name) on the text screen ... Process next line ...
Test if the old name (Block OR Layer) exist ! If NO warning on the text screen with the old name ... Process next line ...
Test if the new name exist ! If YES warning on the text screen with the new name ... Process next line ...
If OK : rename (Block OR Layer) and print old & new name on the text screen
4) Goto Step 3
And if possible at the end, 2 totals :
xx lines processed - xx Blocks/Layers renamed OK
Do you see what I mean ?
Thanks in advance, THE HEALTH (Stay Safe), Regards, Patrice
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks
Patrice BRAUD
Solved! Go to Solution.