I have some lofted geometry that I need to intersect a plane and return a specific curve length. I’ve been able to construct the geometry with dynamo and measure the length of the intersection. I am trying to use a while loop to incrementally adjust one of the points controlling the loft until I reach my target length.
I’ve poked around on this forum and in the design script documentation but I think I’m getting the syntax wrong.
I’ve set up an imperative in a code block with the variables “translate” and “increment”. “Translate” is the initial amount that I want to move the point by, and then I want it to keep moving in steps based on the “increment” value. I want this to keep looping until the length of the intersection between lofted surface and plane reaches my target length.
I suspect my problem is in getting the result from the “translate = translate + increment” function in my while loop pushed out of the code block and into the other parts of my script controlling the lofted geometry.