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

About WEAP

What's New?
Sample Screens
History and Credits

Using WEAP
User Guide
Videos (YouTube)

User Forum
Members List
Edit Profile

Additional Support
University Courses

About Us
SEI-US Water Resources Program
Please Contact Us

Environmental News
Ocean microplastics: First global view shows seasonal changes and sour...
An estimated 8 million tons of plastic trash enters the ocean each year, and most of it is battered by sun and waves int...

Cause, scope determined for deadly winter debris flow in Uttarakhand,...
The Uttarakhand region of India experienced a humanitarian tragedy on Feb. 7, 2021, when a wall of debris and water barr...

World-first discovery could fuel the new green ammonia economy
Scientists have developed a new technique using phosphonium salts that can help drive the future production of green amm...
Source: Science Daily
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 "Unit of the area on Cachment with API"
Log in to post new messages or reply to existing messages.
Author Message
Mr. Ignacio Aguirre

Subject: Unit of the area on Cachment with API   
Posted: 8/27/2020 Viewed: 1038 times

I have been using the API to create catchment-type nodes, however, I have not been able to insert the unit of the area [km2] through it, but I had to do it manually one by one, how can you insert the unit of the area in the catchments through the API?
Currently, I use it through Python and VB.

Mr. Jack Sieber

Subject: Re: Unit of the area on Cachment with API   
Posted: 8/29/2020 Viewed: 1035 times
Yes, you can change the unit via the API, using the ScaleUnit property of the WEAPVariable class. Here's an example:

WEAP.Branch("\Demand Sites and Catchments\Big Farm").Variables("Area").ScaleUnit = "km^2"


Topic "Unit of the area on Cachment with API"