Sparx Systems Forum

Enterprise Architect => Suggestions and Requests => Topic started by: thedunkmeister on June 26, 2003, 01:32:41 am

Title: Get the currently open EA using automation
Post by: thedunkmeister on June 26, 2003, 01:32:41 am
Is it possible to change the functionality of the automation interface so that the currently running instance of EA can be accessed, rather than having to start a new instance ? So for example, in VB, rather than doing this :

   Set  MyRep = CreateObject("EA.Repository")

you could do this :

   Set MyRep = GetObject("", "EA.Repository")

This would allow you to work in the EA window on your model, and then run some script or whatever that uses the automation interface, without having to close the file you are working on each time you want to run your script (I hope.)