Skip to main content

ModelCenter APIs 2025 R2

setVariableValues

Last update: 16.07.2025

public setVariableValues(index: String, run: Long, values: Array<Any>, valid: Boolean, modified: Boolean)

sets all values of a variable as a chunk

Parameters

index variable name or index
run starting run id
values values to set
valid validity flag of the value
modified modify flag of the value

Throws

ModelCenterException

public setVariableValues(index: Int, run: Long, values: Array<Any>, valid: Boolean, modified: Boolean)

sets all values of a variable as a chunk

Parameters

index (0-based index)
run starting run id
values values to set
valid validity flag of the value
modified modify flag of the value

Throws

ModelCenterException

Connect with Ansys