Author Topic: Scripting for dummies  (Read 2934 times)

marcelloh

  • EA User
  • **
  • Posts: 192
  • Karma: +0/-0
    • View Profile
Scripting for dummies
« on: December 23, 2009, 06:23:15 pm »
So, I found out, EA has some scripting under the hood.
Well, let's try several scripts that are included in the package.

Javascript
- P has no properties, Line 23

Javascript1
- Maths is not defined, line 19

I just picked the bottom 2, to find out it doesn't work.

What I was looking for was, if it would be possible to use scripts when generating rtf documentation. So based on some home made filters, I could actually generate the stuff I want into and rtf document.





Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: Scripting for dummies
« Reply #1 on: January 06, 2010, 11:54:48 am »
Marcello,
If you are wanting to get Documentation from scripting you can use the RunReport () command to generate RTF docuemtnts or if you want create specific output to say Word there has been some VB 6 code for Document generation availble on: http://www.sparxsystems.com.au/resources/developers/autint_vb.html
this could be converted to VBScript and run using the scripting.

mrf

  • EA User
  • **
  • Posts: 311
  • Karma: +0/-0
    • View Profile
Re: Scripting for dummies
« Reply #2 on: January 06, 2010, 02:05:56 pm »
The scripts in question were only ever intended to be test scripts and somehow managed to get into the earlier builds of version 7.5. They have since been removed and we've added a more comprehensive library of scripts.

These examples can be found in the 'Local Scripts' section of the Scripter Window (Local Scripts are discovered from the %EAInstallPath%\Scripts directory).

If my memory serves me correctly, the vbScript examples were included in build 846, and the JScript examples were included in build 847.
« Last Edit: January 06, 2010, 02:06:45 pm by mfraser »
Best Regards,

Michael

[email protected]
"It is more complicated than you think." - RFC 1925, Section 2.8