Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: tzafrir on June 13, 2019, 03:02:17 pm

Title: Tags of specific Stereotype
Post by: tzafrir 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
Title: Re: Tags of specific Stereotype
Post by: Geert Bellekens 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
Title: Re: Tags of specific Stereotype
Post by: tzafrir 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)
Title: Re: Tags of specific Stereotype
Post by: Geert Bellekens 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