Skip to main content

ModelCenter APIs 2026 R1 SP03

getVariable

Last update: 30.07.2026

public getVariable(index: Int): Variable

gets the specified variable

Return

the specified variable

Parameters

index the variable index (0-based index)

Throws

ModelCenterException

public getVariable(name: String): Variable

gets the specified variable.

Return

the specified variable

Parameters

name the variable name. Can be a dotted notation string for a variable relative to this component.

Throws

ModelCenterException

Connect with Ansys