Archi Forum

Archi Plug-ins => jArchi => Topic started by: JoCriSem on January 22, 2024, 10:33:45 AM

Title: Change Element Name
Post by: JoCriSem on January 22, 2024, 10:33:45 AM
Hi, is there a way to update the name of all elements with a given pattern in their name to another given pattern (e.g. from "[decision] Appeal or not?" to "[question] Appeal to not?"

Thanks
Johan.
Title: Re: Change Element Name
Post by: Phil Beauvoir on January 22, 2024, 10:51:51 AM
Hi, not in the Archi UI. You could create a jArchi script to do that, though.
Title: Re: Change Element Name
Post by: projetnumero9 on February 18, 2024, 16:25:22 PM
Hi,
some time ago, I wrote a script for a similar usecase, to search and replace a string.
My usecase evolved and I updated the script
- to work w/ the attributes name and documentation
- to work w/ REGEXes
- to work when selecting concepts in the model tree of graphical objects in a view

See: https://gist.github.com/projetnumero9/4e8c09f7c129af0716a725d6c50322c8
If it helps,