ENsetcoord: Set coordinates for a node

View source: R/coords.r

ENsetcoordR Documentation

Set coordinates for a node

Description

Set coordinates for a node

Usage

ENsetcoord(nodeindex, x, y)

Arguments

nodeindex

index of nodes for which to set coords

x

coordinate

y

coordinate

Value

returns NULL invisibily on success or raises an error or warning

Examples

# path to Net1.inp example file included with this package
inp <- file.path( find.package("epanet2toolkit"), "extdata","Net1.inp")  
ENopen( inp, "Net1.rpt")
ENgetcoord(3)
ENsetcoord(3,33,44)
ENgetcoord(3)
ENclose()

epanet2toolkit documentation built on Nov. 6, 2023, 9:06 a.m.