Author Topic: Adding taggedvalue to a class  (Read 1434 times)

consalvol

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Adding taggedvalue to a class
« on: October 26, 2023, 12:41:47 am »
Has anyone used a vbscript to add a taggedvalue to all classes in a sparx ea model.  i have the vbscript reading through a model and identifying the classes - (the element class) - now that i have the individual class does anyone know what the syntax to update this element by adding a tagged value .

Like i said the script reads the model and iterates through all classes - now i need to understand how to update the class by adding a tagged value - my model has approx 600 classes cannot do this manually.

Thanks,
Louie

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Adding taggedvalue to a class
« Reply #1 on: October 26, 2023, 03:40:17 am »
element.taggedValues.addnew ("name", "value") would be the operation you need.

w.

consalvol

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Adding taggedvalue to a class
« Reply #2 on: October 27, 2023, 02:10:07 am »
thanks..