So, I am trying to create a script that adds attributes auto-magically to my elements.
The catch is that these attributes are actually stereotypes whose base class is Attribute. Additionally, some of these attribute stereotypes also have tagged values associated with them.
If I was creating elements using script, I would do something like this:
Set repositoryElement = targetPackage.Elements.AddNew(elementName, baseClass)
repositoryElement.PackageID = targetPackage.PackageID
repositoryElement.SynchTaggedValues( profileName, stereotype)
repositoryElement.Update()
As we all know, the element would now be pre-populated with all the tagged values specified in the profile.
BUT....how do I achieve the same thing with attributes?
That is, how do I add all the tagged values that are specified in my attribute stereotype?
Hope this all makes sense.
Thanks in advance
Jays
