2429 Views
You are wellcome Ying.
From the script editor, as well as from visual basic code or other programming interfase, you can't point any result you want, for example one accounting for only one fuel (or at least you couldn't... maybe it changed with LEAP2011 and I still don't know it).
To evade this inconvinient you have to create a new branch under Indicators folder. There you can construct every result you want and then you can use it in your automation like I told you before.
In LEAP Analysis view create an indicator named NOx with the following expression:
Freedonia:Pollutant Loadings[ton, Effects=Nitrogen oxides nox]
(reeplace "Freedonia" for the name of your area)
In LEAP results you can check if the indicator you created it's giving the result that you are expecting comparing it with the result you previously viewed in Results View.
Then in the script write the sentece:
Leap.BranchVariable("Indicators\NOx:Indicator").DataValue(2030) and you should have it automated.
Bye,
Francisco.