I am trying to connect to the Sparx EA project using C# application. For that I have created one C# console application and added Interop.EA.dll as a reference in the project. Following is the code that I am using to connect to the Sparx EA.
r = new EA.Repository();
bool isOpen = r.OpenFile("C:\\Sparx-EA\\Sample Project.eap");
I was expecting that It will open the Sample Project, but instead it is opening New Project dialog to get the new project name/path. When I close that dialog without selecting any project, it is opening the Sample Project.
Is there any mistake I am doing in this code? I don't want to cancel/close the New Project dialog every time I run the program.
I am using Sparx EA 11.1.1111 Trial. Experiencing same behavior while opening the Sparx EA UI. It is first asking for new Project and on close that dialog it is opening the previously opened project.