    

 ## On this page

  

 

 # getSize

 Last update: 30.07.2026 

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

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

#### Return

the number of elements in the array

#### Throws

[ModelCenterException](./../-model-center-exception/index.md)public [getSize](get-size.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 getLength()

#### Return

the number of elements in the array

#### Parameters

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

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