Hi Everybody,
our trainee wrote two little VB applications.
The first one wrote the current project and the current Diagram ID to a file with the extension "EAD" (EA Diagram)
The second application was associated with this file extension. When you double click this EAD file, the socond application reads this file, open the project (if it's not allready open) and loads the diagram stored in the file.
With this two little tools it was possible for us to store "Diaglram Links" on the desktop (or anywhere on the harddrive) and open the diagram directly with a double click.
I hope this explanation is good enough that everybody understand what this tools made.
This solution works perfect for us ... till last week!
But now, we've moved our EAP file to a MSSQL Repository, the tools didn't work and the trainee is gone :-/
Now it's my job to change the tools to the new requirements with my minimum knowledge about VB and the autoation interface.

In the past we opened EA and load the project with the following code:
deskWin = GetDesktopWindow()
ShellExecute(deskWin, "Open", projectPath, "", "", 1)
This works fine for EAP files, but for sure not for Repositorys in a DB.

How can I identify the currently loaded repository
and
how can I load the repository with the automation interface.
I'm happy about evry kind of help!
