Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started 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?
-
you can use the registry. It's Q&D, but it works.
There's no such thing as .CurrentModel.FileName in EA
-
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.