Ensure the function repeats Automatically

Hi,
I have a function that needs to use the output of the first index as the input for the second index, and this process should repeat until the last index.

I can’t quite understand what you’re describing; the function outputs a result which you need to feed back into itself? Something else?

Hi ,@jacob.small

thank you for the reply,

I need help with splitting a line in Dynamo. Here’s my situation:
What I Need to Do:

I have a long black line (Line AB), and I want to split it into parts, with each part being about 20 feet long. But I have three important rules I need to follow:

*The split points must be on the either of blue points (called plus points) that are already marked along the line.
*The split points must also be at least greater than or equal to 5 feet away from the red lines marked along the line.
*The split line should be less than or equal to 20 feet
Where,this function should repeat till the line end point.

What I Need Help With:

Here We got the first split line of the AB line using the following method:
*We started at point A (the beginning of the AB line).
*We added 20 feet (our preferred length) to point A, which gave us a new point.
*We then found the nearest Plus Point (blue point) to this new point.
*We made sure the split point was at least 5 feet away from the Redline, which satisfied the conditions for the first split.

However, we are having trouble figuring out how to repeat this process until we reach the end of the AB line.
In Attached Image Shown how I wanted Output/Result.

Any suggestions would be helpful!

What have you tried so far?

1 Like