replace#

case.replace(p0: str, p1: str) int#

Replace the current selected case dataset with another case dataset.

By default the new case names are called “Case #” where the # is the next available case # - 1 based.
Args:
p0:

‘old_value’ name of the case to be replaced

p1:

‘new_value’ name (id) of the case replacing the old string value

Examples:
#
# select 2nd case
#
ensight.case.select("Case 2")
#
# replace 2nd case w/2nd case
#
ensight.case.replace("Case 2")
#
# select 2nd case 'Case 2'
#
ensight.case.select("Case 2")
#
# select 2nd case
#
ensight.case.select("Case 2")
#
# replace 2nd case w/3rd case
#
ensight.case.replace("Case 2","Case 3")
#
# select 2nd case
#
ensight.case.select("Case 3")
Returns:

zero on success, non-zero on error