Author Topic: Importing in VB.NET  (Read 5824 times)

Electronikx

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Importing in VB.NET
« 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?

charge

  • EA User
  • **
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Re: Importing in VB.NET
« Reply #1 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

Phil_Bachmann

  • EA User
  • **
  • Posts: 38
  • Karma: +0/-0
    • View Profile
Re: Importing in VB.NET
« Reply #2 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.