• 134 views | 2 messages Discussion: LEAP
    Topic: How to run LEAP from a visual basic script Subscribe | Previous | Next
  • Carolina Cardenas 4/18/2024

    Hello good day to every one,

    I am trying to run a LEAP scenario from a vbs code independent of LEAP, could someone tell me how to run LEAP from a visual basic script?

  • Charlotte Wagner 6/3/2024
      Best Response


    Hi Carolina,

    you can create a vbs script in LEAP in the "Advanced>Edit scrips"- menu, which shows you all the different vbs expressions you can use. Save the script to the folder of your particular LEAP area (in this case Freedonia) and it will be shown under "Run Area Script" (see screen shot below). In this example, I created a script that runs this leap area (the code is Calculate(FALSE), false indicating that you do not want to also run WEAP).

    Best,
    Charlotte