492 Views
Hi Rebecka,
Based on your post, I'll assume that you have already defined a number of new scenarios in the Scenario Manager, and that you'd like to plug in a different value for a particular variable(s) into each of these scenarios.
Try something like this (which you may copy and paste into LEAP's built-in script editor, at Advanced: Edit Scripts):
============================
For each sc in LEAP.Scenarios
LEAP.ActiveView = "Analysis"
LEAP.BranchVariable("Key\path\to\assumption:Activity Level").Expression = "a LEAP expression"
LEAP.ForceCalculation
LEAP.ActiveView = "Results"
LEAP.ExportResultsCSV("C:\path\to\file.csv")
Next
============================
You'll need to modify the script to enter whatever expression and file name you deem appropriate, but I hope the structure helps to get you started.
Taylor