1
Automation Interface, Add-Ins and Tools / Connect to currently running EA app - C#?
« on: December 08, 2012, 07:23:42 pm »
Hi,
I am using the automation interface to connect to EA and extract various pieces of information from the repository (using C#).
I would like to connect to the current instance: from reading the docs, I should just be able to do:
But cs is empty; if I call any methods on the repository it complains I haven't opened a file yet. It seems it hasn't connected to the current instance.
Any pointers?
Thanks,
Mike.
I am using the automation interface to connect to EA and extract various pieces of information from the repository (using C#).
I would like to connect to the current instance: from reading the docs, I should just be able to do:
Code: [Select]
EA.App app = new EA.App();
string cs = app.Repository.ConnectionString;But cs is empty; if I call any methods on the repository it complains I haven't opened a file yet. It seems it hasn't connected to the current instance.
Any pointers?
Thanks,
Mike.