Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: marku on November 04, 2020, 07:18:53 am

Title: Relationship with default tags
Post by: marku on November 04, 2020, 07:18:53 am
Is it possible to create a relationship in EA 15.2, but have a few tags at once?
I'm currently creating a relationship and adding tags manually - which is tedious with more.
For other objects, I have a pattern / template - where I immediately have tags, which I only fill in (I do not have to add manually)
Title: Re: Relationship with default tags
Post by: qwerty on November 04, 2020, 08:53:58 am
Think about creating a profile (/MDG). That's basically meant for what you're trying to achieve.

q.
Title: Re: Relationship with default tags
Post by: Sunshine on November 04, 2020, 10:08:27 am
First recommendation is that I concur with querty's advice and create MDG. However for some folk that is just too much effort. The other option if you know one of the scripting languages like JavaScript, JScript or VB Script is to write a script that can do it in bulk. I've known a few people who have initially taken that latter option and then later when they have more time to think about it end up resorting to the former option.

Title: Re: Relationship with default tags
Post by: Uffe on November 04, 2020, 05:22:03 pm
The third option is to write an Add-In, which can react to the creation of the connector and add the tags automatically -- something a script can't do.

Another consideration is that with a profile / MDG technology you have to create a stereotype, which is how EA knows to create your tags automatically. With scripts and Add-Ins that isn't necessary. Recommended, but not required.

/Uffe
Title: Re: Relationship with default tags
Post by: marku on November 04, 2020, 10:32:01 pm
THX
I admit that I assumed that maybe the manufacturer himself will add such a possibility. Exactly like eg building "object templates" in a Project Template Package, eg via QuickLinker.
Title: Re: Relationship with default tags
Post by: Uffe on November 04, 2020, 11:03:28 pm
If you want to suggest a feature you need to make a formal request, which you can find in the site's top menu under Support -> Contact Us.

I think you can add connector tags in a template, but only if the source and target elements are also in the template. So in other words, you can't use templates to create new connectors without also creating new elements.

It may be it's possible to do it using the merge option, but I haven't tested it and I think probably not.

/U