Skip to main content

ModelCenter APIs 2026 R1 SP03

setEnumAliases

Last update: 30.07.2026

public setEnumAliases(enumAliases: String)

sets the enumerated aliases for the variable. If specified, the enumerated aliases are alias values for enumerated values. For example, if the enumerated values are set to "1,2,3", and the enumerated aliases are set to "one,two,three", then calling fromString( "three" ) will result in the value being set to 3.

Parameters

enumAliases a comma separated list of enumerated aliases

Throws

ModelCenterException

Connect with Ansys