Book a Demo

Author Topic: adding TaggedValues to all packages in model  (Read 2625 times)

golen

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
adding TaggedValues to all packages in model
« 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

golen

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: adding TaggedValues to all packages in model
« Reply #1 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