Learn to manage BIM workflows and create professional Archicad templates with the BIM Manager Program.
2010-07-05 03:10 PM
IF (FRA(count/3)) = 0 THEN MATERIAL mat_board IF (FRA(count/3)) = 1/3 THEN MATERIAL mat_board2 IF (FRA(count/3)) = 2/3 THEN MATERIAL mat_board3Unfortunately, it only seems to alternate the first 3, then it seems to get stuck on mat_board for all iterations afterwards.
2010-07-05 03:35 PM
2010-07-05 03:56 PM
2010-07-05 07:31 PM
nStripe = count MOD 3 IF nStripe = 0 THEN MATERIAL mat_board if nStripe = 1 THEN MATERIAL mat_board2 if nStripe = 2 THEN MATERIAL mat_board3Of course, if you have an array set up, then you can just replace all of the above with:
MATERIAL mat_board[(count MOD 3)+1]where the +1 is necessary since GDL array indices begin at 1. An advantage of the array is that you can generalize your script to handle any number of stripes, defined parametrically. The other solutions are 'hard coded' to a specific number of stripes.
2010-07-06 09:58 AM