archimatetool / archi

Archi: ArchiMate Modelling Tool
https://www.archimatetool.com
MIT License
914 stars 267 forks source link

[Feature Request] Label Expressions - Traversing parents #1042

Closed davidsara closed 2 months ago

davidsara commented 2 months ago

Hello!

Is it possible to traverse parents using Label Expressions?

I'd like to add information about view name (Context), parent folder name (1 Preliminary) and its parent folder name (PROJ A) to get the project name into label.

image

$ ??? $vfolder{name} $view{name}

Thank you! David

romualdrichard commented 2 months ago

Hi, not sure that's its possible but : you can add a property "project" in the "1 Preliminary" which has value "PROJ A" and use it like $vfolder{property:project}

davidsara commented 2 months ago

Thank you! Yes, that's the option I'm using now, but when the project is renamed, I have to update a lot of properties :)

romualdrichard commented 2 months ago

For this, jArchi is your friend, a script which update a property on the selected elements : https://gist.github.com/davidsara/0bad09ad4d148b9cbef940b54f4df2e3

davidsara commented 2 months ago

Thank you, I will try! I forgot I've uploaded this script, my bad :)