1
Automation Interface, Add-Ins and Tools / Re: Validating MDG Technology Stereotypes and Tagged Value Types from Database
« Last post by Eve on December 31, 2025, 09:52:05 am »Coming at your problem from a different angle. The functionality (b in particular) you're describing seems to be redundant.
If I define a tagged value type in the UML Types dialog. Any tagged value (new or old) with that name automatically gets the type specified in the dialog. Nothing needs to be added to the notes of the tag itself to make that happen. Even the new tagged value dialog recognises that match and disables the value field.
There are factors that complicate that simple answer. Adding a AppliesTo or BaseStereotype to the definition limits where the definition can be applied and tagged values where the notes specify their own type won't get overridden.
The tagged values coming from an MDG technology stereotype work in the same way. Any attributes defined on the stereotype become properties as soon as the stereotype is applied (or element is created.) They show in the main Properties window instead of the Tags part of the same dialog and the type of control they display is specified within the MDG Technology file. (See With Predefined Tag Types for the recommended way to set that in your technology and With Predefined Tag Types (Legacy Profiles) for the legacy method.)
All that is to say, your automation appears to be trying to duplicate functionality built-in to EA. If you're not seeing that functionality then that's the problem I would be trying to solve.
If I define a tagged value type in the UML Types dialog. Any tagged value (new or old) with that name automatically gets the type specified in the dialog. Nothing needs to be added to the notes of the tag itself to make that happen. Even the new tagged value dialog recognises that match and disables the value field.
There are factors that complicate that simple answer. Adding a AppliesTo or BaseStereotype to the definition limits where the definition can be applied and tagged values where the notes specify their own type won't get overridden.
The tagged values coming from an MDG technology stereotype work in the same way. Any attributes defined on the stereotype become properties as soon as the stereotype is applied (or element is created.) They show in the main Properties window instead of the Tags part of the same dialog and the type of control they display is specified within the MDG Technology file. (See With Predefined Tag Types for the recommended way to set that in your technology and With Predefined Tag Types (Legacy Profiles) for the legacy method.)
All that is to say, your automation appears to be trying to duplicate functionality built-in to EA. If you're not seeing that functionality then that's the problem I would be trying to solve.
Recent Posts