Skip to main content

ModelCenter APIs 2025 R2

getReferencedVariable

Last update: 16.07.2025

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