Hello,
This might have come across in the forum. I am trying to shatter a set dimension at curve ends. Currently, I don’t get uniform division. I do aware when curves might not be able to achieve a set dimension. Can someone give me a suggestion.
Thank you, E

If your curves contain curvy portions, applying the same curve parameter does not necessarily yield the same length.
In this case, If you’d like to get some dashed lines, it would be better to use Extend Curve.

This script is cropped of my whole script. Thanks to HS_Kim and Jakinta.

I am facing a strange data tree when the curve division length is large than the given curve. Data tree is not simplifying even if I used simplify command.
Can you advise please.Shatter Question Data Tree.gh|attachment (11.8 KB)

I want to perform the script both by chance shorter curve length than given dimension and for longer curves. these data tree output messing up in further script.

It’s also saved as R6 so is missing Subtractionin R5.

R6 has been out for over a year, might be time to update if you would like to help more on the forum. More than likely the people asking this level of question are new users with a new Rhino since it is the Rhino available to purchase / trial currently.

I’m well aware of that deliberate abandonment of R5 users @Michael_Pryor, thanks anyway for the advice. For various reasons, I decided not to pay for the privilege of debugging Grasshopper R6 and providing customer support on this forum.

I’ve studied your code and see what it’s doing but am not so sure about your objective?

First, you Shatter the curve based on DivLength. Do you realize that may result in more than two curves? And that the last curve will usually be shorter than all the others because it’s the “remainder” of what’s left of the original curve after dividing it by “Length”?

Second, you subtract ‘Offset’ from the length of the curve pieces from step 1. In some cases, the offset can be larger than the length of the last fragment, which results in a negative number.

Thank you Joseph for your points. I will try to do ‘check step’ before hand. Helpful.
In terms of origin due to couple of reason, I should have share base script near to origin.
Regards, E