• 157 views | 3 messages Discussion: LEAP
    Topic: Using leap script editor to write a code .Subscribe | Previous | Next
  • Ahmed Alaadin 7/10/2019

    what to write to make leap understand that i want to set average environmental loading (CO2 emissions) related to a fuel to a specific value.
    I wrote " LEAP.Branch("Demand\gate\Coal Bituminous").Variable("Avg Environmental Loading").Expression=20." an error message says range check error appears.
    Can you help me out?


    Capture.PNG
  • Emily Ghosh 8/20/2019
      Best Response

    1 Like

    Hi Ahmed,

    I apologize for the very delayed response. Typically, the Avg Environmental Loading variable is associated with an effects branch. You will need to update the branch path in your script accordingly. For example, if you are trying to change the CO2 emissions factor, the script will need to be updated to say:

    LEAP.Branch("Demand\gate\Coal Bituminous\Carbon Dioxide").Variable("Avg Environmental Loading").Expression=20

    Hope this helps,
    Emily

  • Ahmed Alaadin 8/21/2019
      Best Response

    Thank you .