For the script I made it player friendly, so user picks an alignment, runs the script, then gets a table of the profiles for that alignment, then type in the index number of the profile you want and then choose to use the profile start and end points or a user entry (if the station falls outside the profile it returns -999 elevation). Because vertical curves have to be tessellated I also tessellated hz curves so it’s not super pretty but works (so far).
Because I am tessellating both HZ and VT curves, I didn’t want overlapping tessellated station values, so I wanted to get all the VT tessellated stations grouped by vertical curve, then get the min/max station of each curve, then filter out and HZ tessellated stations within that range. But since there are likely multiple VT curves there are multiple ranges so that was a new challenge for me and hope this helps someone else.
Nice work! This OOTB node does almost the same thing, where you can get a PolyCurve from a Profile and adjust the tessellation. It looks like your method is a little more complete because it doesn’t include the extra points along tangent sections, but this node might save a bit of real estate in the graph.
Just riding on the wave, here is a way to convert a featureline to alignment and profile. In case anyone is looking to perform reverse operation (featureline elevation to profile PVI). suggestions welcomed
Thanks Zach, I saw this but the title lead me to believe that this was polycurve of the profile as you’d see it in a profile view; just tried it out and it is actually a poly curve for HZ with vert from profile. This certianly does have potential, especially for a more simplified approach.
Yes, the differences I would imagine are because of the tessellation (approximating curves with lines) which leads to the differences. No sorry necessary, I posted this to foster discussion
It worked nicely on my tessellated feature line but it doesn’t work with feature lines with curves since you are going the route of taking all the feature line points and converting to polyline and making alignment.