Skip to main content

ModelCenter APIs 2026 R1 SP03

addVariable

Last update: 30.07.2026

public addVariable(name: String, equation: String, isNumeric: Boolean, isValid: Boolean, isInput: Boolean, type: String, units: String, value: String)

Adds a variable to the custom design point

Parameters

name the Data Collector name of the variable(can be anything)
equation the equation(usually full ModelCenter variable name)
isNumeric whether or not the variable is numeric
isValid whether or not the variable is valid for this run
isInput whether or not this variable is an input
type the variable's type, i.e. "double"
units the units of the variable
value the value of the variable for this run

Throws

ModelCenterException

Connect with Ansys