Skip to main content

ModelCenter APIs 2026 R1 SP03

setSize

Last update: 30.07.2026

public setSize(size: Long)

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

Parameters

size the number of elements to store in the array

Throws

ModelCenterException

public setSize(size: Long, dimension: Long)

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

Parameters

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

Throws

ModelCenterException

Connect with Ansys