Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

0 or 1 for first value in a DIM [array] ?

Anonymous
Not applicable
Often when scripting geometric parts, loops start from 0 and go through to 1 (or 'X'). It is 'frustrating' (and untidy) to have to use a [i +1] throughout the code.

If GDL pretends to be a geometrical scripting language then allowing basic mathematics would be a nice touch.

Note - my personal 'recommendation' would be just for a small extension of the existing coding, thus
DIM A[8] would allow A[0], A[1], A[2] ... A[8]
- which would not interfere with legacy code -and- make me happy in the future!

- Stuart

PS. Yeah - I know this is a pretty small wish - but surely it would be easier to implement??
0 REPLIES 0