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
Publications
History and Credits

Using WEAP
Download
Licensing
User Guide
Tutorial
Videos (YouTube)

User Forum
Discussions
Members List
Edit Profile

Additional Support
Training
University Courses
Collaboration

About Us
SEI-US Water Resources Program
Please Contact Us

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

Link WEAP and LEAP for combined Water-Energy planning.
Watch a video demo!
   

User Forum

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

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

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

Hamide (Mozambique)
Mr. Jack Sieber

Subject: Re: Demand site   
Posted: 8/28/2016 Viewed: 8583 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
Mr. Hamide Jamal Ilacinho

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