License Delivery maintenance is expected to occur on Saturday, November 30, between 8 AM and 11 AM CET. This may cause a short 3-hours outage in which license-related tasks: license key upload, download, update, SSA validation, access to the license pool and Graphisoft ID authentication may not function properly. We apologize for any inconvenience.
Licensing
About all sorts of licenses, their management, Graphisoft ID, Graphisoft Store, License Manager Tool, etc.

Help needed with GDL looping of subroutines

Anonymous
Not applicable
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!