Skip to main content

ModelCenter APIs 2026 R1 SP03

getReferencedVariable

Last update: 30.07.2026

public getReferencedVariable(arrayIndex: Int, varIndex: Int): Variable

gets the specified referenced variable

Return

the specified variable

Parameters

arrayIndex (0-based index)
varIndex the variable index (0-based index)

Throws

ModelCenterException

public getReferencedVariable(arrayIndex: Int): Variable

Convenience method to return the referenced variable. Should only be used if there is only one reference variable.

Return

the specified variable

Parameters

arrayIndex (0-based index)

Throws

ModelCenterException

Connect with Ansys