Author Topic: Tags of specific Stereotype  (Read 197 times)

tzafrir

  • EA User
  • **
  • Posts: 127
  • Karma: +0/-0
    • View Profile
Tags of specific Stereotype
« on: June 13, 2019, 03:02:17 pm »
Hi,

I need some help in finding out where data is stored in DB (or in memory),
That holds for each Stereotypes its related tags.

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: Tags of specific Stereotype
« Reply #1 on: June 13, 2019, 03:32:32 pm »
It's in the MDG file (xml)

That file can be stored in
- program files folder
- user profile
- database
- user configured location
- provided by an add-in

It might be easier to create an instance of that specific stereotype and then query it's tagged values.

Geert

tzafrir

  • EA User
  • **
  • Posts: 127
  • Karma: +0/-0
    • View Profile
Re: Tags of specific Stereotype
« Reply #2 on: June 13, 2019, 04:23:00 pm »
Lets assume that in my case the MDG is in fileSystem folder,
Can you set a short example on how to create an instance of the ST?
(or the only way to do it is parse the xmi?)

The objective of this,
is to get changes in the MDG appear in the model itself correctly after modifying it (and running the Synchronize command)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 9547
  • Karma: +275/-27
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Tags of specific Stereotype
« Reply #3 on: June 13, 2019, 05:10:15 pm »
Use
Code: [Select]
EA.Collection.AddNew("Name","MyProfile::MyStereo")To make a new element of your stereotype.

I still don't get what you want. If you run Synchronize, you have the tagged values you need no?

Geert