Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: kjourdan on June 01, 2016, 09:34:43 pm

Title: Unsetting an enumerated tagged value
Post by: kjourdan on June 01, 2016, 09:34:43 pm
Hi all,

I have created a stereotype that has an enumerated tagged value with no default.  After selecting a tagged value, is there a way to unset that value? For strings, references, etc, the value can be unset be either deleting the entry or selecting none on a reference type tag. I would like to be able to revert back to an unset state for the enumerated tagged value in some cases.

Thanks.
Title: Re: Unsetting an enumerated tagged value
Post by: qwerty on June 01, 2016, 10:19:22 pm
Has been asked several times IIRC. The way to do is to introduce an explicit Undefined entry (or whatever you call it). The recent discussion circled around "is a none-value a value?".

q.
Title: Re: Unsetting an enumerated tagged value
Post by: Uffe on June 02, 2016, 12:16:51 am
Hello,

The GUI doesn't allow you to select an empty value in an enum-style tagged value, but since the actual stored value is just a string you could always write a little script that sets the value to an empty string.

/Uffe
Title: Re: Unsetting an enumerated tagged value
Post by: kjourdan on June 02, 2016, 12:35:27 am
Thanks Uffe and Qwerty. I will add a NotDefined enumeration and update my scripts to remove the value when it encounters this enumeration.