Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: golen on July 24, 2009, 09:57:21 pm

Title: adding TaggedValues to all packages in model
Post by: golen on July 24, 2009, 09:57:21 pm
Hi

I have a problem with adding taggedValues. No errors but no effect too. What do I do wrong  :-?

for each p in e.Packages
      call p.Element.TaggedValues.AddNew("test", "")
      call p.Element.Update()
next
Title: Re: adding TaggedValues to all packages in model
Post by: golen on July 24, 2009, 10:47:14 pm
I did it - if someone had the same problem, the solution is below

Dim tv as EA.TaggedValue

for each p in e.Packages
       Set tv = p.Element.TaggedValues.AddNew("test", "test")
      tv.Update
next