Book a Demo

Author Topic: Getting a value from EA.Attribute  (Read 5101 times)

tzafrir

  • EA User
  • **
  • Posts: 127
  • Karma: +0/-0
    • View Profile
Getting a value from EA.Attribute
« on: August 01, 2016, 05:55:17 am »
Hi,
This is probably pretty simple but I can get the value from EA.Attribute.

I am getting all the attributes in the element (using element.AttributeEx)
Then running on all the attribute I am getting, I am seeing that I am getting the attribute name.

But I cant get the attribute value,
I tries to get a collection EA.Attribute attribute.TaggedValuesEx\TaggedValues and attribute.Notes
None of these is working even though I have values for the attribute in the Model.

Does anybody knows the correct API for this matter?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Getting a value from EA.Attribute
« Reply #1 on: August 01, 2016, 12:49:54 pm »
What you you mean by the "value" of the attribute?

Geert

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Getting a value from EA.Attribute
« Reply #2 on: August 01, 2016, 02:37:47 pm »
EA.Attribute.Default will contain the initial value of the attribute, if any.
The Sparx Team
[email protected]