Author Topic: Relation between stereotype and its tags  (Read 194 times)

tzafrir

  • EA User
  • **
  • Posts: 127
  • Karma: +0/-0
    • View Profile
Relation between stereotype and its tags
« on: July 07, 2019, 03:36:29 pm »
Hi,
Assuming I have element's stereotypes
(for example it has 2 st).
How can I know which tags related to which stereotype?

TaggedValues property gives me all the tags of the element (combining all the ST together)
I want to know them separately.

Is it possible?

Thanks,
Tzafrir

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 9547
  • Karma: +275/-27
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Relation between stereotype and its tags
« Reply #1 on: July 07, 2019, 04:11:00 pm »
In the GUI you can see easily which tagged values belong to which stereotypes.

From the API, you can't really I think.
Parsing the MDG file is the only way I can think of.

Geert

PS. I would try to avoid duplicate stereotypes. Just makes things complicated.

tzafrir

  • EA User
  • **
  • Posts: 127
  • Karma: +0/-0
    • View Profile
Re: Relation between stereotype and its tags
« Reply #2 on: July 07, 2019, 05:18:26 pm »
What I want to do is to compare the MDG vs the current status in model.

My problem is where does EA holds the info (what tables in DB?),
that let the GUI know that difference of which ST goes with which tags. 

qwerty

  • EA Guru
  • *****
  • Posts: 10635
  • Karma: +234/-196
  • I'm no guru at all
    • View Profile
Re: Relation between stereotype and its tags
« Reply #3 on: July 07, 2019, 06:20:41 pm »
That's not (really) possible. The information about a loaded MDG is stored completely in EA's internal memory. You would need to know where the MDG is stored (the MDG path is held in the "MDGTechnology PathList" key in the registry) and parse it yourself.

q.