Author Topic: Reading data from imported MDG  (Read 430 times)

tzafrir

  • EA User
  • **
  • Posts: 127
  • Karma: +0/-0
    • View Profile
Reading data from imported MDG
« 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


qwerty

  • EA Guru
  • *****
  • Posts: 10624
  • Karma: +233/-194
  • I'm no guru at all
    • View Profile
Re: Reading data from imported MDG
« Reply #1 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.

EXploringEA

  • EA User
  • **
  • Posts: 167
  • Karma: +4/-0
    • View Profile
Re: Reading data from imported MDG
« Reply #2 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



« Last Edit: October 31, 2018, 08:03:27 am by EXploringEA »
Tools & information including EA Installation Inspector
eaForms - custom properties editor
EXploringEA - experiments when time permits

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 9537
  • Karma: +274/-27
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Reading data from imported MDG
« Reply #3 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

qwerty

  • EA Guru
  • *****
  • Posts: 10624
  • Karma: +233/-194
  • I'm no guru at all
    • View Profile
Re: Reading data from imported MDG
« Reply #4 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.