I am trying to take a curve with a radius and divide it into 1500mm straight sections. I almost have a script working, but my straight sections change in length depending on the radius of the curve.

How do I GH to give me 1500 segments regardless of radius?

For sure I forgot this one , it was the reason I added and â€śsâ€ť to my component name !!!
By the way if @rismail88 wants to use the maximum of its curve he can use Galapagos to obtain a distance that will minimize the last part.

itÂ´s all about setting the rules at the first place. In other words you must find your own answers for this - â€śstraight sections while maintaining the overall geometryâ€ť - what does that mean for me? What is crucial? What can be omitted?

In your example file - two curves with different curvatures must have different distances between two points, when you set the division parameter along the length of the curve. Set the division by the distance, not by the length.

Please look at the below attached script. These are just few basic ways you can rebuild smooth curve to polyline. There are other methods as well. Please look at how each method sets different results.

divide distance component is what you are after, it will divide curve with exact equal distance of point to point same as polyline.
also you can right click on curve component and choose â€śinternalizeâ€ť ,this will copy the curve from Rhino View to Grasshopper component and no more need to upload *.3dm with *.gh Segment Curve_001.gh (16.2 KB)

Thank you, divide distance was the solution. I apologize for not catching your suggestions a few days ago - but it looks like I was overthinking the issue at hand.