Code Block function

revit
dynamo

#1

I’ve seen this code block somewhere but i don’t know what it is for. Anyone please enlighten me?
Thanks


#2

It gives you the elements of an input list associated with indexes 0 to 4 in your example ([startIndexendIndex] in general)
If range exceeds the number of elements on list, an outside range exception is thrown.


#3

Hi @alvpickmans
Thanks a lot


#4

Hi @alvpickmans
Do you know how this script work? Why there is no "warning: the index is outside the given range"



#5

I bet there are 5 list elements exiting the Element.Geometry node therefore the [0…4] indices pull those four surfaces and create the polysurface.