    

 ## On this page

  

 

 # getLength

 Last update: 30.07.2026 

public [getLength](get-length.md)(): [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)

gets the size of the array. Same as getSize()

#### Return

the number of elements in the array

#### Throws

[ModelCenterException](./../-model-center-exception/index.md)public [getLength](get-length.md)(dimension: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)): [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)

gets the size of a specific dimension in the array. Same as getSize()

#### Return

the number of elements in the array

#### Parameters

dimensionthe dimension of interest (0-based index)#### Throws

[ModelCenterException](./../-model-center-exception/index.md)