Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Risikat on July 09, 2012, 11:15:24 pm

Title: Generate a report in EA using the command line
Post by: Risikat 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.
Title: Re: Generate a report in EA using the command line
Post by: qwerty on July 09, 2012, 11:51:03 pm
You can write a simple script that uses the API to perform s single task.

q.
Title: Re: Generate a report in EA using the command line
Post by: Risikat 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
Title: Re: Generate a report in EA using the command line
Post by: Geert Bellekens on July 10, 2012, 09:05:19 pm
I would use C#, but I guess that is kind of a personal preference.

Geert
Title: Re: Generate a report in EA using the command line
Post by: qwerty on July 10, 2012, 11:45:04 pm
:-) indeed. I'd prefer Perl...

q.
Title: Re: Generate a report in EA using the command line
Post by: KP 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 (http://www.sparxsystems.com/enterprise_architect_user_guide/9.3/automation/setup.html) 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.