Learn to manage BIM workflows and create professional Archicad templates with the BIM Manager Program.

GDL
About building parametric objects with GDL.
SOLVED!

index value greater than array dimension

LeeJaeYoung
Virtuoso

LeeJaeYoung_1-1679204032927.png

LeeJaeYoung_0-1679202608653.png

 

dim  WallskinThk[4]

WALL_SKINS_NUMBER = 4

i use WallskinThk[4]

 

Sometimes the error message doesn't come out, then it comes up again.

 

Saving is possible, but it doesn't feel good.

AC27 on window 11
1 ACCEPTED SOLUTION

Accepted Solutions
Solution

Assuming you always want the last skin, 

WallSkinThk[WALL_SKINS_NUMBER]

 

Seeing the actual code would make it much easier to help.

View solution in original post

5 REPLIES 5

The array is defined by the number of skins in the wall. So if at any time it's related to a wall with less than 4 skins you will get this error

So how should I set it up?

AC27 on window 11
Solution

Assuming you always want the last skin, 

WallSkinThk[WALL_SKINS_NUMBER]

 

Seeing the actual code would make it much easier to help.

thank you so much

AC27 on window 11

if WALL_SKINS_PARAMS[idx][SKIN_CORE_STATUS] > EPS then
            cumCoPen = WALL_SKINS_PARAMS[idx][SKIN_CONT_PEN]

endif

 

 

PEN cumCoPen

-----------------------------

 

Error occurs here too.
What should I do?

AC27 on window 11

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!