TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: jtm2018hyo on December 02, 2019, 10:28:28 AM

Title: rename anything with regex
Post by: jtm2018hyo on December 02, 2019, 10:28:28 AM
I found a vlx (rrename) that rename block, layer, etc. with regex, but I tried to rename with "find (.+)(a|b|c) replace $2$1" but does not works.

link: https://www.cadforum.cz/cadforum_en/rename-on-steroids-complex-renaming-of-autocad-objects-tip9265

so maybe I'm doing something bad (teach me please to use it).

but I think that maybe can be possible rename anything with any excel or text file? (equivalent to TABLE command linking table to excel file)
Title: Re: rename anything with regex
Post by: VMichl on December 02, 2019, 04:43:41 PM
It works for me. Your find/replace codes do rename e.g. "LayerA" to ALayer" and "LayB" to "BLay". Do you expect this type of renames?
Title: Re: rename anything with regex
Post by: ronjonp on December 02, 2019, 05:23:17 PM
This was posted below as well .. it appears to be user error.
https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/alternatives-to-rrename-vlx/m-p/9177469#M393113