cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Help needed with GDL looping of subroutines

Hi I'm only new to using ArchiCad.
I am drawing a railing section in GDL that is looping subroutines. What I have done is draw a post and section and then loop this
It seems to work when I loop the sub routines using the " For k=0 To k= 5" etc
But when i try to do it by using the dist method the programme keeps crashing and I cant figure out why.
Does anyone know what Im doing wrong??
Im using version 10
3 Replies 3
TomWaltz
Participant
What do you mean by the "dist" method?
Tom Waltz
Anonymous
Not applicable
This is part of my 3d script:

len = A (x dimension ie length of wall)

For dist = 0 to len STEP tsecl
ADDX dist
GOSUB 1
Del 1
Next dist

The tsecl is the length of my post and railing section
GOSUB 1 is what I'm looping
TomWaltz
Participant
I would check to make sure that tsecl actually reaches len. It might not.

You also can have problems with FOR/NEXT loops that if the TO value is not hit exactly, Archicad flips.

I would go with a DO/WHILE tsecl < len or REPEAT/UNTIL tsecl > len instead.
Tom Waltz

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!