Sparx Systems Forum
Enterprise Architect => General Board => Topic started 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)
-
Think about creating a profile (/MDG). That's basically meant for what you're trying to achieve.
q.
-
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.
-
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
-
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.
-
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