ENsetlinktype {epanet2toolkit}R Documentation

Change a link's type

Description

Change a link's type

Usage

ENsetlinktype(index, type, action = "EN_UNCONDITIONAL")

Arguments

index

of link before type change

type

the new type to change the link to (see details)

action

the action taken if any controls contain the link (see details)

Details

Link type is one of: EN_CVPIPE, EN_PIPE, EN_PUMP, EN_PRV, EN_PSV, EN_PBV, EN_FCV, EN_TCV, EN_GPV

If actionCode is EN_UNCONDITIONAL then all simple and rule-based controls that contain the link are deleted when the link's type is changed. If set to EN_CONDITIONAL then the type change is cancelled if the link appears in any control and error 261 is returned.

Value

link index after the type change


[Package epanet2toolkit version 1.0.5 Index]