Hi again,
Looks like I spake too soonly. The tagged value connector is not allowed between a stereotype and an enum in a profile model. Multiple connectors do work for the situation where you want multiple RefGUIDs of the same stereotype, though. I checked.
In the profile model, what you must do with enums is create an attribute in the stereotype and set its type to the enum type by selecting it in the attribute property dialog. If you do that, you can indeed create multiple tagged values with the same set of enum values.
However, what EA does in that case is duplicate the enum values in the stereotype definition. This might not be what you want, but I don't think there's a way around it. (RefGUIDs, by contrast, are defined as separate entities which are referred to from the stereotype definition, even in the XMI).
Here's a profile with one stereotype which has two RefGUID tagged values of the same type, as well as two enum tagged values of the same type. As you can see, the enum definition is simply duplicated for each tag.
<?xml version="1.0" encoding="windows-1252"?>
<UMLProfile profiletype="uml2">
<Documentation id="1464CA28-2" name="Prof" version="1.0" notes="Prof"/>
<Content>
<Stereotypes>
<Stereotype name="SomeReference" notes="" cx="90" cy="70" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="0">
<AppliesTo>
<Apply type="Class">
<Property name="isActive" value=""/>
</Apply>
</AppliesTo>
</Stereotype>
<Stereotype name="TheMainStereotypeWithAllTheStuffInIt" notes="" cx="90" cy="70" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="0">
<AppliesTo>
<Apply type="Class">
<Property name="isActive" value=""/>
</Apply>
</AppliesTo>
<TaggedValues>
<Tag name="Suitability" type="enumeration" description="" unit="" values="Spiceresque,Loose,Casual,Tailored,Body-hugging,Tight! Too tight! Argh gasp cough splutter" default=""/>
<Tag name="Fitness" type="enumeration" description="" unit="" values="Spiceresque,Loose,Casual,Tailored,Body-hugging,Tight! Too tight! Argh gasp cough splutter" default=""/>
<Tag name="refA"/>
<Tag name="refB"/>
</TaggedValues>
</Stereotype>
</Stereotypes>
<TaggedValueTypes>
<TaggedValueType property="refA" description="" notes="Type=RefGUID;Stereotypes=SomeReference;"/>
<TaggedValueType property="refB" description="" notes="Type=RefGUID;Stereotypes=SomeReference;"/>
</TaggedValueTypes>
</Content>
</UMLProfile>
Also note that the name of the enum type, which was "Degree of Fitness", doesn't make it into the XMI.
HTH,
/Uffe