Skip to main content

ModelCenter APIs 2025 R2

setLength

Last update: 16.07.2025

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