About
Introduction
Applications
Workshops
What's New?
Testimonials
Download
License
Learn
Training Materials
User Guide
Videos on YouTube
Citation Guidelines
Library
Courses
Modeling Tools
IBC: The Integrated Benefits Calculator
NEMO: The Next Energy Modeling system for Optimization
Community
Members List
Membership Statistics
Recommend Members
LEAP on Facebook
Discuss
LEAP Support
Announcements
LEAP en Español
General (non technical)
New Messages Only
Search
Search LEAP Site
Find Members
Sign Up
Log In
×
Requested page only available to members
×
Search LEAP Website
×
Login
Email:
Password:
Cookies are currently disabled:
Click here to enable
140 views | 2 messages
Discussion:
LEAP
Topic:
Using leap script editor to write a code.
Subscribe
|
Previous
|
Next
Ahmed Alaadin 3/3/2019
Like
what to write to make leap understand that i want to set a variable to a specific value. Those were my first lines. all were executed except setting the value( the last line ) . Can you help me out?
ActiveArea = "New Freedonia"
ActiveScenario = "Current Accounts"
ActiveBranch = "\Demand\Households\Urban\Cooking\electric Stoves"
ActiveVariable = "Demand Cost"
Expression = "50"
Taylor Binnington 3/13/2019
Like
1 Like
Hi Ahmed,
Try this, using LEAP's Script Editor:
ActiveScenario = "Current Accounts"
LEAP.Branch("Demand\Households\Urban\Cooking\Electric Stoves").Variable("Demand Cost").Expression = 50
Taylor
Copyright © Stockholm Environment Institute
, 1982-2024, Language: English,
Citing LEAP
,
Privacy Policy