Change Element Name

Started by JoCriSem, January 22, 2024, 10:33:45 AM

Previous topic - Next topic

JoCriSem

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.

Phil Beauvoir

Hi, not in the Archi UI. You could create a jArchi script to do that, though.
If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.

projetnumero9

#2
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,