ere a way to set this up in a way that lets say when there are 28 it will go for one of 4, 7 or 14 and if it is a primer number it will exclude enough number of boats to obtain the closest suitable number - lets say there are 29 boats but it will only show 28 and go back to selecting 4,7 or 14.…
Added by Levent Ozruh at 10:40am on October 14, 2014
am however having a problem with something simple - limiting a set of values between a fixed set that I need help with please?
For example, I'd like to transform this list . . .
(2, 16, 4, 65, 12, 41, 7, 1, 22)
into this one . . .
(5, 16, 5, 25, 12, 25, 7, 5, 22)
i.e. selecting all numbers below 5 and changing them to 5 and selecting all numbers above 25 and changing them to 25.
I know it's possible with a simple If, Not, Then series but I'm rubbish at code!
Also, is there a simple way to apply dimensions to rhino objects from within GH?
Thanks for your help!
Cheers
James…