Author Topic: User or model default diagram  (Read 6876 times)

Knut Paulsen

  • EA User
  • **
  • Posts: 82
  • Karma: +1/-0
    • View Profile
User or model default diagram
« on: November 27, 2015, 07:59:07 pm »
Hi guys,

Is there a way I can find out about user or model default diagrams in EA_FileOpen?

Thanks :-)
Knut

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: User or model default diagram
« Reply #1 on: November 28, 2015, 01:09:27 am »
Good question. I have looked at all locations I could think of. But I have no idea where they hide that information :-/

q.

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: User or model default diagram
« Reply #2 on: November 28, 2015, 02:07:47 am »
Hej!


Well, It Depends[size=8]TM[/size].

Repository.ConnectionString can contain a file path, and that file may be a shortcut file, which is a text file with an .EAP extension (check the size, if it's less than 100 KB it's a shortcut).
That file may contain an OpenActions:$diagram://{GUID} clause, which would be one way of specifying a default diagram.

HTH,


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

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: User or model default diagram
« Reply #3 on: November 28, 2015, 06:24:19 am »
The diagrams in the shortcut file are extra's next to the user or model default.

The model default is definitely stored in the model somewhere, but I don't  know where exactly.
The user default could either be stored in the %appdata%, the registry, or in the model. My guess would be the model itself.

The best way to figure out stuff like that is to fire up some kind of profiler application that catches all the communication between EA and the database.
Then change the setting, and see which sql commands were send to the database.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: User or model default diagram
« Reply #4 on: November 28, 2015, 08:59:55 am »
Geert, I did all that (you know I did that not the first time). But I have not found a single trace. There must be a treasure island out there which coordinates I don't know yet.

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: User or model default diagram
« Reply #5 on: November 28, 2015, 11:46:01 pm »
The treasure island might be usys_system
This table has a record where Property= 'Default Diagram'.

The Value field holds the diagram GUID.
I haven't looked for the user default yet, but it might be stored in the same table (or maybe not :))

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: User or model default diagram
« Reply #6 on: November 29, 2015, 01:18:03 am »
Bingo! Time for another Inside update  :)

q.

Knut Paulsen

  • EA User
  • **
  • Posts: 82
  • Karma: +1/-0
    • View Profile
Re: User or model default diagram
« Reply #7 on: December 01, 2015, 05:51:50 pm »
Great guys, thank you. I'll try it out :-)

cheers Knut