Index matching

Hi,
I have a list of curves that I replaced with new curves. I need the indices of the new curves to be the same as the old ones so they match up with the rest of my data. I’ve tried “replace items”, “replace member”, sorting. I can’t seem to figure it out. There must be a simple solution I’m missing. Thanks.
indexMatching.gh (22.2 KB)


this relies on the assumption (that luckily enough seems true this time) that if you overlap the two plans, the closest point to the center point of each new curve is the center point of the very same curve from the old curve set
-but be aware that this is playing with fire, not a reliable method: as soon as curves start changing a little bit too much, this won’t work at all-


indexMatching_Re.gh (28.7 KB)

1 Like

Thank you inno! This worked great! The original curves imported from Archicad were messy. So I needed to redo them. Make everything tight. So this solution was perfect. I wouldn’t have thought of it, being so focused on solving it as a list problem.