    

 ## On this page

  

 

 # setValue

 Last update: 30.07.2026 

public [setValue](set-value.md)(value: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), index: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html))

sets the value of the variable at a specific location

#### Parameters

valuethe value of the variableindexindex in string form, i.e. \[1\]\[2\]\[3\]#### Throws

[ModelCenterException](./../-model-center-exception/index.md)public [setValue](set-value.md)(value: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), d1: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html))

sets the value of the variable at a specific location

#### Parameters

valuethe value of the variabled1index in the 1st dimension (0-based index)#### Throws

[ModelCenterException](./../-model-center-exception/index.md)public [setValue](set-value.md)(value: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), d1: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d2: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html))

sets the value of the variable at a specific location

#### Parameters

valuethe value of the variabled1index in the 1st dimension (0-based index)d2index in the 2nd dimension (0-based index)#### Throws

[ModelCenterException](./../-model-center-exception/index.md)public [setValue](set-value.md)(value: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), d1: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d2: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d3: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html))

sets the value of the variable at a specific location

#### Parameters

valuethe value of the variabled1index in the 1st dimension (0-based index)d2index in the 2nd dimension (0-based index)d3index in the 3rd dimension (0-based index)#### Throws

[ModelCenterException](./../-model-center-exception/index.md)public [setValue](set-value.md)(value: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), d1: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d2: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d3: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d4: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html))

sets the value of the variable at a specific location

#### Parameters

valuethe value of the variabled1index in the 1st dimension (0-based index)d2index in the 2nd dimension (0-based index)d3index in the 3rd dimension (0-based index)d4index in the 4th dimension (0-based index)#### Throws

[ModelCenterException](./../-model-center-exception/index.md)public [setValue](set-value.md)(value: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), d1: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d2: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d3: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d4: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d5: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html))

sets the value of the variable at a specific location

#### Parameters

valuethe value of the variabled1index in the 1st dimension (0-based index)d2index in the 2nd dimension (0-based index)d3index in the 3rd dimension (0-based index)d4index in the 4th dimension (0-based index)d5index in the 5th dimension (0-based index)#### Throws

[ModelCenterException](./../-model-center-exception/index.md)public [setValue](set-value.md)(value: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), d1: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d2: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d3: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d4: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d5: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d6: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html))

sets the value of the variable at a specific location

#### Parameters

valuethe value of the variabled1index in the 1st dimension (0-based index)d2index in the 2nd dimension (0-based index)d3index in the 3rd dimension (0-based index)d4index in the 4th dimension (0-based index)d5index in the 5th dimension (0-based index)d6index in the 6th dimension (0-based index)#### Throws

[ModelCenterException](./../-model-center-exception/index.md)public [setValue](set-value.md)(value: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), d1: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d2: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d3: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d4: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d5: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d6: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d7: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html))

sets the value of the variable at a specific location

#### Parameters

valuethe value of the variabled1index in the 1st dimension (0-based index)d2index in the 2nd dimension (0-based index)d3index in the 3rd dimension (0-based index)d4index in the 4th dimension (0-based index)d5index in the 5th dimension (0-based index)d6index in the 6th dimension (0-based index)d7index in the 7th dimension (0-based index)#### Throws

[ModelCenterException](./../-model-center-exception/index.md)public [setValue](set-value.md)(value: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), d1: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d2: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d3: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d4: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d5: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d6: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d7: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d8: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html))

sets the value of the variable at a specific location

#### Parameters

valuethe value of the variabled1index in the 1st dimension (0-based index)d2index in the 2nd dimension (0-based index)d3index in the 3rd dimension (0-based index)d4index in the 4th dimension (0-based index)d5index in the 5th dimension (0-based index)d6index in the 6th dimension (0-based index)d7index in the 7th dimension (0-based index)d8index in the 8th dimension (0-based index)#### Throws

[ModelCenterException](./../-model-center-exception/index.md)public [setValue](set-value.md)(value: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), d1: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d2: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d3: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d4: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d5: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d6: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d7: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d8: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d9: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html))

sets the value of the variable at a specific location

#### Parameters

valuethe value of the variabled1index in the 1st dimension (0-based index)d2index in the 2nd dimension (0-based index)d3index in the 3rd dimension (0-based index)d4index in the 4th dimension (0-based index)d5index in the 5th dimension (0-based index)d6index in the 6th dimension (0-based index)d7index in the 7th dimension (0-based index)d8index in the 8th dimension (0-based index)d9index in the 9th dimension (0-based index)#### Throws

[ModelCenterException](./../-model-center-exception/index.md)public [setValue](set-value.md)(value: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), d1: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d2: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d3: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d4: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d5: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d6: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d7: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d8: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d9: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), d10: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html))

sets the value of the variable at a specific location

#### Parameters

valuethe value of the variabled1index in the 1st dimension (0-based index)d2index in the 2nd dimension (0-based index)d3index in the 3rd dimension (0-based index)d4index in the 4th dimension (0-based index)d5index in the 5th dimension (0-based index)d6index in the 6th dimension (0-based index)d7index in the 7th dimension (0-based index)d8index in the 8th dimension (0-based index)d9index in the 9th dimension (0-based index)d10index in the 10th dimension (0-based index)#### Throws

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