Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: AlanT on June 07, 2012, 06:03:20 am

Title: Newbie Question re VBScript
Post by: AlanT on June 07, 2012, 06:03:20 am
I am new to using scripts in EA.  I am using VBScript.  However, when I use the command Console.WriteLine("test), as in the EA examples, I get the following error:

New script error: Variable is undefined: 'Console', Line:13

I am sure this is something really simple, but I cannot figure out what I need to do to get EA to recognize the Console object.

Thanks, Alan
Title: Re: Newbie Question re VBScript
Post by: qwerty on June 07, 2012, 06:38:05 am
Have you tried running the original scripts?

q.
Title: Re: Newbie Question re VBScript
Post by: Aaron B on June 07, 2012, 09:59:31 am
For VBScript running within EA, try replacing "Console.WriteLine" with "Session.Output" instead.