Book a Demo

Author Topic: Vbs.ExportXML but license key screen pops up  (Read 7033 times)

Damião

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Vbs.ExportXML but license key screen pops up
« on: June 26, 2015, 04:44:16 am »
The Vbscript runs ok
but EA shows the license key management screen.

Is there a way that i can make
the connection occur without
this screen to be shown.

Obs:
a. It happens also when i have an opened EA before the script run.
b. We have mysql database.
c. EA Version: 10.0.1006

Thanks again,
=============================================
sub main
       dim r
      set r = CreateObject("EA.Repository")
       r.OpenFile("EA-XXXX --- DBType=0;Connect=Provider=MSDASQL.1;Persist Security Info=False;Data Source=EA-XXXX;LazyLoad=1;")
       set projectInterface = r.GetProjectInterface()
      dim s
      s = projectInterface.GUIDtoXML ("{D474D985-0E5A-4f91-8E0C-AF5E8DEA305B}")
      call projectInterface.ExportPackageXMI(s, 0, 1, 3, 0, 0, "G:\TESTE\EA\arquivo.xml")
      r.CloseFile()
end sub
main
=============================================
« Last Edit: June 26, 2015, 05:07:15 am by damiaoverde »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Vbs.ExportXML but license key screen pops up
« Reply #1 on: June 26, 2015, 05:27:49 am »
Try OpenFile2 and supply a user/password

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Vbs.ExportXML but license key screen pops up
« Reply #2 on: June 26, 2015, 08:53:03 am »
When run via automation, EA still requires and uses the same license key used by the UI. Enter a license key and you should be fine on future runs.

Damião

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: Vbs.ExportXML but license key screen pops up
« Reply #3 on: June 26, 2015, 11:26:05 pm »
Sorry guys !

After applying your tips,
EA still asks for licence keys.   :-/
=============================================
sub main
     dim r
     set r = CreateObject("EA.Repository")
     r.OpenFile2 "EA-XXXX --- DBType=0;Connect=Provider=MSDASQL.1;Persist Security Info=False;Data Source=EA-XXXX;LazyLoad=1;", "mylogin", "mypass"
     set projectInterface = r.GetProjectInterface()
     dim s
     s = projectInterface.GUIDtoXML ("{D474D985-0E5A-4f91-8E0C-AF5E8DEA305B}")
     call projectInterface.ExportPackageXMI(s, 0, 1, 3, 0, 0, "G:\TESTE\EA\arquivo.xml")
     r.CloseFile()
end sub
main
=============================================

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Vbs.ExportXML but license key screen pops up
« Reply #4 on: June 27, 2015, 12:11:15 am »
So, if you open EA on that very machine by hand it starts without asking?

q.

Damião

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: Vbs.ExportXML but license key screen pops up
« Reply #5 on: June 27, 2015, 12:58:40 am »
No.
With an opened EA (by hand) also pops me up screen to inform registration key when i run the script.

These are the steps:
1. open EA (by hand).
2. pops me up screen 'License Management'.
3. i do inform the license key (they are floating licenses).
4. EA opens.
5. run the VbScript (thru dos).
6. pops me up screen 'License Management' again.

Maybe its something because they are floating licenses ?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Vbs.ExportXML but license key screen pops up
« Reply #6 on: June 27, 2015, 02:01:49 am »
I guess you'll have to configure EA such that it automatically checks-out a license key. That will then probably work for both manual started as start from automation.

Geert

Damião

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: Vbs.ExportXML but license key screen pops up
« Reply #7 on: June 27, 2015, 02:21:04 am »
I've never did that before.

I can read and learn about this, but,
if you can comment Geert,
where can i configure it ?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Vbs.ExportXML but license key screen pops up
« Reply #8 on: June 27, 2015, 02:40:13 am »
Quote
I've never did that before.

I can read and learn about this, but,
if you can comment Geert,
where can i configure it ?
I'm not sure, would need to search the help myself.. All I know it that my clients who have floating licenses don't need to enter anything whey they start up EA. The license key is automatically checked out without any actions from the user.

Geert

Damião

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: Vbs.ExportXML but license key screen pops up
« Reply #9 on: June 27, 2015, 02:47:44 am »
hamm
do we need to actualize EA every year ?
because ours, has not been.

We installed EA in 2013 (version 10) and since than, not upgrade it.

Damião

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: Vbs.ExportXML but license key screen pops up
« Reply #10 on: June 27, 2015, 03:10:11 am »
Solved !!
It was just an operational issue.

I used to click "release key" after choosing the floating key in the license key management screen.
If you do not click "release" (when logging in)
you can execute EA without him to ask licenses again.

So
maintaining EA like this (with license key)
i could run the script and it connects to the project directly.

Thanks !!!  .....  everybody.