Skip to main content

ModelCenter APIs 2026 R1

setVariableInputs

Last update: 18.06.2026

abstract fun setVariableInputs(which: Any, values: Array<Any>, runIndices: Array<Int>)

Set some/all inputs for a particular variable, across runs.

Parameters

which the variable to set (index or name)
values the values to set
runIndices the indices of the runs to set values for; if null, sets all

Throws

IndexOutOfBoundsException if the indices are not valid
IllegalArgumentException if the arguments are otherwise illegal
IllegalStateException if an input cannot be set currently

Connect with Ansys