cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Developer forum
GDL coding questions, Python and add-on development using the API Dev Kit.

index value greater than array dimension

LeeJaeYoung
Mentor

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.

AC25 5010 / AC26 4019 on window 11
1 ACCEPTED SOLUTION
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?

AC25 5010 / AC26 4019 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

AC25 5010 / AC26 4019 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?

AC25 5010 / AC26 4019 on window 11

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!