Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: tzafrir on October 30, 2018, 07:34:24 am

Title: Reading data from imported MDG
Post by: tzafrir on October 30, 2018, 07:34:24 am
Hi,

I imported MDG which included a customized dependency relation between stereotype A to stereotype B.
Now I want to get to that information (this dependency) when running the addin on the Model.
Is there an API that can read data from the MDG?
I did not find this data in the DB. Does anybody knows where it is kept?

Thanks,
Tzafrir

Title: Re: Reading data from imported MDG
Post by: qwerty on October 30, 2018, 08:26:32 am
No you can not access the MDG data from inside EA. Except you know where the XMI source is stored and read that file.

q.
Title: Re: Reading data from imported MDG
Post by: EXploringEA on October 31, 2018, 02:58:55 am
Hi

As Qwerty says only way to get the MDG information is to read the relevant files, note that there may be MDG files within Sparx Program files area e.g. "C:\Program Files (x86)\Sparx Systems\EA\MDGTechnologies"  as well as within the users appdata e.g. "\Sparx Systems\EA\MDGTechnologies\"  - that caught me out 1st time I did it.

You then need to parse the relevant files to extract the information you need.

Adrian



Title: Re: Reading data from imported MDG
Post by: Geert Bellekens on October 31, 2018, 05:56:55 am
If imported into a model I think it is stored in t_document. (but I could be wrong)

Geert
Title: Re: Reading data from imported MDG
Post by: qwerty on October 31, 2018, 06:53:18 am
Yes. And of course you don't know which profile EA takes: the one in the model, the one from the program folder or the one from the MDG/Advaced menu (that appdata-variant is new to me).

q.