Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5873

Writing to a single element of a nested array

$
0
0

Dear forum members,

I am once again struggling with my rhinoscript and have already searched the whole internet for a solution of the following problem.

I need to store data in a nested array. The data consists of strings which are devided into max. 300 groups. Each group consists of max. 100 strings. I would like to define a nested array with dimensions in the following bounds: arrStrings(0 to 300)(0 to 100).

The problem is, that I have to write the strings to the array one after the other in a loop. Reading a single element of the array is easily done by e.g. Rhino.Print arrString(51)(45).

I tried a similiar syntax to set the values of the elements, but this approach didn’t work, e.g.: arrString(51)(45)=“Test”.

I hope someone can help me. Thanks!

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 5873

Trending Articles