Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Electronikx on February 24, 2004, 05:07:49 am

Title: Importing in VB.NET
Post by: Electronikx on February 24, 2004, 05:07:49 am
I'm trying to load a running document of EA into a VB-script. The problem is I can not find the path from where I can load it.
I made it for a rose-document and there you can get is with a simple .CurrentModel.FileName but in the NameSpace of EA (interop.EA) there is nothing usefull.
Does somebody know where I can find the filepath in this namespace?
Title: Re: Importing in VB.NET
Post by: charge on March 01, 2004, 05:48:14 am
you can use the registry. It's Q&D, but it works.
There's no such thing as .CurrentModel.FileName in EA
Title: Re: Importing in VB.NET
Post by: Phil_Bachmann on March 03, 2004, 08:24:40 pm
It may be best o call the VB application from within EA.

See http://www.sparxsystems.com.au/AutIntVBCallingFromEA.htm  for a run down on using the call parameters to pass the EA File location to the VB application.

I hope this is of help.