Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Knut Paulsen 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
-
Good question. I have looked at all locations I could think of. But I have no idea where they hide that information :-/
q.
-
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
-
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
-
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.
-
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
-
Bingo! Time for another Inside update :)
q.
-
Great guys, thank you. I'll try it out :-)
cheers Knut