Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Boron on July 10, 2017, 06:21:13 pm

Title: [Own UML profile] Add tags based on value of other tag?
Post by: Boron on July 10, 2017, 06:21:13 pm
Hello,
is it anyhow possible let EA create/remove tags based on the value of another tag?

Example:
I created an stereotype <<Signal>> (based on metaclass Interface).
A <<Signal>> will always have the tag "Conversion", which is an enum with "Analog" and "Linear" as selectable values.
I would no like to do EA the following magic:
 - If I select "Linear" two additional tags shall be added.
 - If I select "Analog": the two new tags should disappear, if existing.

Any idea how this can be realized?
Maybe UML profiles and stereotypes are the wrong way to do this. I appreciate any other idea.
Title: Re: [Own UML profile] Add tags based on value of other tag?
Post by: qwerty on July 10, 2017, 06:59:16 pm
The simple answer to your question is: no, can't be done.

You might eventually use groups which can be collapsed (and hide a number of TVs).

q.
Title: Re: [Own UML profile] Add tags based on value of other tag?
Post by: Boron on July 12, 2017, 07:25:25 pm
Many thanks :).
Tag grouping is OK for me. Not needed tags can simply be left empty.

Reference for interested people:
http://sparxsystems.com/enterprise_architect_user_guide/12.1/building_models/define_tag_groupings.html