New Script: Import specializations from properties file

Started by yveszoundi, April 27, 2024, 01:16:25 AM

Previous topic - Next topic

yveszoundi

Hello guys,

Reusing specializations quickly in new models is not easy, unless you've got a special diagram with all specialized elements that you copy/paste between models.
I use different specializations accordingly to the project/model/audience and maybe you'll find this minimalistic script handy too.

Script URL
https://gist.github.com/yveszoundi/cddecaca70b0b3a97d69224d7a29d2c1

Approach
  • Create a folder wih all your icons
  • Create a mapping.properties file in your icons folder with the following syntax: specialization=element-type

Auxiliary script to dump archimate view element types
https://gist.github.com/yveszoundi/2f3dd1e97b616540d86931f55662bed3


Jean-Baptiste Sarrodie

Hi,

Just in case you didn't think about it: your can also create a model which only contains specializations' definition and import this model into other model to automate the creation of the specializations.

Regards,

JB
If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.

yveszoundi

Thanks Jean-Baptiste,

I didn't know about that approach as I usually don't import models. It's great to have multiple options.

Cheers,
Yves