Book a Demo

Author Topic: How to determine the profile of a diagram  (Read 6147 times)

tzafrir

  • EA User
  • **
  • Posts: 127
  • Karma: +0/-0
    • View Profile
How to determine the profile of a diagram
« on: June 23, 2016, 05:20:45 am »
Hi,

Does anybody know how to determine either by API or field in table (t_diagram was my thought but its not there).
the profile that contain the diagram type.

Example:
I have a diagram type that is called basic flow that extends Activity diagram, this definition resides in profile named 'ABC'.
When I have the type of diagram (ABC) I would like to know the profile.

Another note, the profile are imported to the model using the MDG technology.

Thanks

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How to determine the profile of a diagram
« Reply #1 on: June 23, 2016, 06:17:52 am »
Look into Diagram.StyleEx (in API and t_diagram). Looks like 
Code: [Select]
MDGDgm=User Interface - Win32::UserInterfaceWin32; for a Win32 diagram.

q.

tzafrir

  • EA User
  • **
  • Posts: 127
  • Karma: +0/-0
    • View Profile
Re: How to determine the profile of a diagram
« Reply #2 on: June 25, 2016, 05:58:02 am »
Hi,
You did not answer my question, let me reexplain what I need.
The DGM attribute in StyleTx holds the profile info at the time the diagram was created.
In case of a profile change, when the diagram is now in a diffrent profile, this attribute holds the value of the old profile and not the current updated one.

My question, where (what attribute) does EA holds the current profile, since when a new diagram is created, it knows to put the correct profile info in the DGM place meaning it holds this value somewhere.

I need to know where.

Tzafrir

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How to determine the profile of a diagram
« Reply #3 on: June 25, 2016, 06:43:29 am »
What do you think is a "profile change"?

q.

tzafrir

  • EA User
  • **
  • Posts: 127
  • Karma: +0/-0
    • View Profile
Re: How to determine the profile of a diagram
« Reply #4 on: June 26, 2016, 12:28:51 am »
change profile means - delete old profile and loading a new MDG profile. Meaning old profile that appears in DGM does not exist anymore

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How to determine the profile of a diagram
« Reply #5 on: June 26, 2016, 12:58:12 am »
I you delete the MDG the stereotypes are "stale". That is, they still exist but lost their context. For the above example, the diagram still holds the same value in StyleEx. Honestly, I still don't know what you are after.

q.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: How to determine the profile of a diagram
« Reply #6 on: June 27, 2016, 09:09:29 am »
My question, where (what attribute) does EA holds the current profile, since when a new diagram is created, it knows to put the correct profile info in the DGM place meaning it holds this value somewhere.

All the relevant information from diagram profiles is held in memory. You will need to read the MDG Technology file yourself.
The Sparx Team
[email protected]