I created a profile from an alignment, but I needed to reverse the direction of that alignment. However, the profile does not automatically change its direction. I am trying to reverse the profile using Dynamo. Is this possible? I am able to recreate the PVIs in a new profile with the correct stations by taking the original stations and calculating the new ones, but I am unable to set the vertical curves in this new profile.
With core nodes, I can only see an option to get the PVIs of the existing Profile, then you can reverse the station values regarding the end point of the Alignment, and then create a new Layout Profile with the new stations and existing elevations. As far as I can see, you can’t add curves.
Thank you for your answer! I had tried this before, but for some reason I don’t know, it didn’t work. In this case, I took the PVI stations, calculated the new ones using the profile length, and used the PVI.SetStation node with the calculated stations. The problem is that this error occurs. Do you know why this happens and how to fix it?
Inverter Perfil - Completo.dyn (42.6 KB)
Did yuo check if the values are within the length of the Alignment? Maybe you have to round the start and end values in case it falls a fraction of a distance outside the Alignment.
Can you create a new Profile with this data?
I checked it, but it’s still not working properly. I found a topic where someone used a node that creates a new curve, but I couldn’t find this node. Do you know where I can find it?
With The Civil Nodes package it is possible to reverse a Profile:
Results in:
You need to do a calculation with the stations regarding the start and end station of the Alignment. Just reversing the elevations result in this:
Which is not a reversed Profile (although it looks great).
You made it more concisely than I did
. With this routine, I’m still struggling to create curves, but it has already helped me a lot. Thanks for your help.
Curves is not possible with The Civil Nodes package, I’m not sure how the core nodes can help with this.
I also don’t know how to do this with out-of-the-box nodes. However, I did get it working using Python, which might help you get started (Civil 3D 2026)…
PVI_Curves_PythonCode.dyn (26.5 KB)
Thank you very much. That was exactly what I was looking for, and it helped me a lot.






