Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: mvinca on March 17, 2012, 06:54:04 am

Title: UML Profile via Diagram, set Units and Values
Post by: mvinca on March 17, 2012, 06:54:04 am
If I am creating an UML Profile using a diagram and "Save Package as UML Profile", how do I populate the "unit" and "values" attributes of the resultant XML?

<Tag name="TopLevelPbsElement" type="RefGUID" description="" unit="" values="" default=""/>

I can hand code it, but I'm not sure what to do in the GUI to fill this in.
Title: Re: UML Profile via Diagram, set Units and Values
Post by: qwerty on March 17, 2012, 07:23:11 am
Not sure if it's simply done when saving the diagram instead of the package as profile.

q.
Title: Re: UML Profile via Diagram, set Units and Values
Post by: KP on March 19, 2012, 09:01:26 am
Use a «taggedValue» association from the «stereotype» class that you want to own the tagged value to the «stereotype» class that you want to reference. Give the association a target role name of "TopLevelPbsElement".