Author Topic: Where are model and user default diagrams stored  (Read 4331 times)

Knut Paulsen

  • EA User
  • **
  • Posts: 82
  • Karma: +1/-0
    • View Profile
Where are model and user default diagrams stored
« on: November 15, 2016, 11:54:44 pm »
I had a discussion with Geert about this some time ago, but can't find it now :-)

Anyway, if you are interested the GUID of the Model Default Diagram is stored in the database table 'usys_system' under property name 'Default Diagram', and the GUID of the User Default Diagram is stored in the database table 't_xref' with Name 'Default Diagram', Type 'User Setting', Client is the GUID of the user (from table 't_secusers') and Supplier is the GUID of the default diagram.

Cheers
Knut

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Where are model and user default diagrams stored
« Reply #1 on: November 16, 2016, 12:17:24 am »
For completeness, if you create an EA shortcut from the File menu, you can specify one or more diagrams to be opened when that shortcut is used.

A shortcut can also do a few other things, so if someone stumbles onto this post wondering about weird things going on when opening a project, the shortcut file is worth a look.

/Uffe
My theories are always correct, just apply them to the right reality.

Marc Vanstraelen

  • EA User
  • **
  • Posts: 40
  • Karma: +6/-0
    • View Profile
Re: Where are model and user default diagrams stored
« Reply #2 on: March 31, 2017, 01:00:23 am »
This has helped me out today. So just for the fun of it, a little query I created based on this info to retrieve the list of User Default diagrams in the project:

Code: [Select]
select d.ea_guid as CLASSGUID, 'Diagram' as CLASSTYPE, d.Name as [Default_Diagram_Name], d.Author as [Diagram_Author], u.Surname, u.FirstName, u.UserLogin
from t_xref x, t_secuser u, t_diagram d
where x.Name = 'Default Diagram'
and u.UserID = x.Client
and d.ea_guid = x.Supplier
order by u.Surname