Book a Demo

Author Topic: Generate a report in EA using the command line  (Read 4467 times)

Risikat

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Generate a report in EA using the command line
« on: July 09, 2012, 11:15:24 pm »
How do you access EA using the command promp. Most importantly generate html or csv reports from the command prompt instead of having to go into EA to do it.
« Last Edit: July 10, 2012, 01:16:54 am by RisikatSeriki »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Generate a report in EA using the command line
« Reply #1 on: July 09, 2012, 11:51:03 pm »
You can write a simple script that uses the API to perform s single task.

q.

Risikat

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Generate a report in EA using the command line
« Reply #2 on: July 10, 2012, 08:03:59 pm »
Quote
You can write a simple script that uses the API to perform s single task.

q.

Which is the better script to write VBScript or JavaScript. How do you go about running it in the command window

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Generate a report in EA using the command line
« Reply #3 on: July 10, 2012, 09:05:19 pm »
I would use C#, but I guess that is kind of a personal preference.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Generate a report in EA using the command line
« Reply #4 on: July 10, 2012, 11:45:04 pm »
:-) indeed. I'd prefer Perl...

q.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Generate a report in EA using the command line
« Reply #5 on: July 11, 2012, 09:22:41 am »
Quote
Which is the better script to write VBScript or JavaScript. How do you go about running it in the command window
Presumably you're talking about the Windows command prompt? Sorry, not possible: you can only run scripts in the Scripting window within EA. The answer is to create your own executable and run that. This page in the help file will get you started in VB6, C#, Delphi or Java, but any language capable of generating ActiveX Com clients can be used.
The Sparx Team
[email protected]