Skip to main content

ModelCenter APIs 2026 R1 SP03

setLength

Last update: 30.07.2026

public setLength(size: Long)

sets the size of the array. Same as setSize()

Parameters

size the number of elements to store in the array

Throws

ModelCenterException

public setLength(size: Long, dimension: Long)

sets the size of a specific dimension in the array. Same as setSize()

Parameters

size the number of elements to store in the array
dimension the dimension of interest (0-based index)

Throws

ModelCenterException

Connect with Ansys