Sparx Systems Forum
Enterprise Architect => General Board => Topic started 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
-
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.
-
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
-
If imported into a model I think it is stored in t_document. (but I could be wrong)
Geert
-
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.