Skip to main content

ModelCenter APIs 2025 R2

getVariable

Last update: 16.07.2025

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