2010-01-14 04:05 AM
2010-01-15 03:15 PM
Olivier wrote:As the reference manual states, parameter arrays are automatically dynamic. Although you may specify a size, this can be increased as required by any instance of the object. I make extensive use of this in the Modular Joinery object. Using the attached image as a reference, we can see this in action:
Hello Ralph,
I know both of these two points, the problem is to define the parameter to be filled in as a dynamic array. As far as I know for an array to be dynamic you have to initialize it by dim ar[][]. And you can't do that for paramaters input. You have to give them dimensions, and then your are limited.
Or did I miss something? can an array in param input with [1][1] become dynamic?
2010-01-17 09:52 PM
2010-01-17 09:55 PM
2010-01-17 10:00 PM
2010-01-18 04:05 PM
Ralph wrote:Very interesting!...
By using dynamic arrays, the object can cater for very small or very large joinery units, but always using the minimum amount of memory required.
2010-01-18 06:23 PM
2010-01-18 08:23 PM
2010-01-18 08:55 PM
2010-01-18 11:01 PM
Piotr wrote:Not exactly - there isn't any need for a
Braza: the whole idea is: using put and get - pour one array to another (the temporary) - while doing so making the modifications etc, and than using parametrs command modify the original array by pouring the temporary array to the original one.
nextIndex = vardim1(myArray) parameters myArray[nextIndex] = 0The array will have one extra row every time this executes.
2010-01-19 12:35 PM
Ralph wrote:My idea was for the implementation Braza asked (line/polyline 3d)...while doing temporary array - you may check where to add a point or where to remove it - and then the whole change can be poured to the final array.Piotr wrote:Not exactly - there isn't any need for a
Braza: the whole idea is: using put and get - pour one array to another (the temporary) - while doing so making the modifications etc, and than using parametrs command modify the original array by pouring the temporary array to the original one.temporaryarray because the parameter array is itself dynamic and provides everything you need. If you need to allocate a new row for an integer array called myArray, you could simply write: nextIndex = vardim1(myArray) parameters myArray[nextIndex] = 0The array will have one extra row every time this executes.