Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: consalvol on October 26, 2023, 12:41:47 am

Title: Adding taggedvalue to a class
Post by: consalvol 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
Title: Re: Adding taggedvalue to a class
Post by: qwerty on October 26, 2023, 03:40:17 am
element.taggedValues.addnew ("name", "value") would be the operation you need.

w.
Title: Re: Adding taggedvalue to a class
Post by: consalvol on October 27, 2023, 02:10:07 am
thanks..