Welcome to WEAP's Website
WEAP
WEAP is an initiative of the Stockholm Environment Institute.


About WEAP

Home
Why WEAP?
Features
What's New?
Sample Screens
Demonstration
Applications
Publications
History and Credits

Using WEAP
Download
Licensing
User Guide
Tutorial
Videos
Resources

User Forum
Discussions
Members List
Edit Profile

Additional Support
Training
University Courses
Collaboration

About Us
SEI-US Water Resources Program
Please Contact Us


 Environmental News
LEAP
Interested in Energy?
Read about LEAP: SEI's software for energy planning.

User Forum

All Topics | Topic "Demand site"
Log in to post new messages or reply to existing messages.
 
Author Message
Hamide Jamal Ilacinho

Subject: Demand site   
Posted: 8/27/2016 Viewed: 953 times
Hi my dears

I would like to know how to add demand site into WEAP by its coordinates. Is it possible?

Hamide (Mozambique)
Jack Sieber

Subject: Re: Demand site   
Posted: 8/28/2016 Viewed: 948 times
Hi Hamide,

No, it is not possible to add a demand site by its coordinates. However, using the WEAP API, you can get the coordinates of a demand site (or any other node on the Schematic).

Here is sample Visual Basic Script (VBS) code to do this. (To learn more about the WEAP API, see the User Guide topic "Automating WEAP (API)" http://www.weap21.org/WebHelp/index.html#WEAPBranch.htm )


For Each Br in WEAP.Branch("\Demand Sites and Catchments").Children

Print Br.FullName & ": " & Br.X & ", " & Br.Y

Next

Jack
Hamide Jamal Ilacinho

Subject: Re: Demand site   
Posted: 8/29/2016 Viewed: 916 times
Thanks...I'll learn more about it.
Topic "Demand site"