All Topics | Topic: “Demand site”
Author Message
Mr. Hamide Jamal Ilacinho
Subject: Demand site   
Posted: 8/27/2016 Viewed: 26971 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: 26959 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: 26917 times

Thanks...I'll learn more about it.
Topic: “Demand site”