Archi Forum

Archi => General Archi Discussion => Topic started by: Gemini on February 26, 2024, 21:06:31 PM

Title: To split the name text of an ArchiMate element by new lines
Post by: Gemini on February 26, 2024, 21:06:31 PM
Hello,
How can I split the name text of an ArchiMate element by new lines?
Thanks
Title: Re: To split the name text of an ArchiMate element by new lines
Post by: Phil Beauvoir on February 26, 2024, 21:14:41 PM
Hi, you could use a label expression like this:

${wordwrap:1:${name}}
See https://github.com/archimatetool/archi/wiki/Label-Expressions
Title: Re: To split the name text of an ArchiMate element by new lines
Post by: Gemini on February 27, 2024, 18:34:36 PM
Thank you for your reply.

It is not clear to me how it can be used. It looks like a jArchi script.

How can I use it in the Main -> Name Field of Element? When I use there,  simply it shows the label command.
Title: Re: To split the name text of an ArchiMate element by new lines
Post by: Phil Beauvoir on February 27, 2024, 18:39:56 PM
A label expression is added in the "Label" tab in the Properties window. See page 61 of the User Guide. For your case you could copy and paste the label expression there.
Title: Re: To split the name text of an ArchiMate element by new lines
Post by: Gemini on February 27, 2024, 18:50:24 PM
Many Thanks!