Skip to main content

EN_setnodevalue

Function EN_setnodevalue 

Source
pub unsafe extern "C" fn EN_setnodevalue(
    ph: EN_Project,
    index: c_int,
    property: c_int,
    value: f64,
) -> c_int
Expand description

@brief Sets a property value for a node. @param ph an EPANET project handle. @param index a node’s index (starting from 1). @param property the property to set (see @ref EN_NodeProperty). @param value the new value for the property. @return an error code.

Values are in units that depend on the units used for flow rate (see @ref Units).