We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2011-07-26 12:15 AM
VALUES "ZZYZX" 128", 168", 176", 192" IF ZZYZX < 192" THEN IF ZZYZX < 176" THEN IF ZZYZX < 168" THEN PARAMETERS riserQuantity = 20 PARAMETERS riserHeight=ZZYZX/riserQuantity LOCK "riserHeight" ELSE PARAMETERS riserQuantity = 24 PARAMETERS riserHeight=ZZYZX/riserQuantity LOCK "riserHeight" ENDIF ELSE PARAMETERS riserQuantity = 26 PARAMETERS riserHeight=ZZYZX/riserQuantity LOCK "riserHeight" ENDIF ELSE PARAMETERS riserQuantity = 28 PARAMETERS riserHeight=(ZZYZX/riserQuantity) LOCK "riserHeight" ENDIF !PARAMETERS stringerAngle = ATN(riserHeight/treadDepth) !!Doesn't calculate correct angle PARAMETERS stringerAngle = ATN((ZZYZX/riserQuantity)/treadDepth) !!Calculates correct angle LOCK "stringerAngle" PARAMETERS stringerAngleTan = TAN(stringerAngle)
2011-07-26 12:20 AM
2011-07-26 04:13 PM
2011-07-27 08:40 PM
...
IF ZZYZX < 168" THEN
PARAMETERS riserQuantity = 20
PARAMETERS riserHeight=ZZYZX/riserQuantity
LOCK "riserHeight"
ELSE
PARAMETERS riserQuantity = 24
...
... riserQuantity = 20 riserHeight=ZZYZX/riserQuantity PARAMETERS riserQuantity = riserQuantity, riserHeight = riserHeight ...Hope this works / helps.
2011-07-27 10:11 PM