Feature Line first vertex elevation from corridor elevation

Hello. I am new to Dynamo and, looking at some training videos and other forums, I realize there is a way to do what I want to, but I keep getting stuck.

To put it in the simplest form, I am hoping to get some guidance in building a script that will make feature lines dynamic. Even if its a screen shot of something I could try to recreate.

I have a corridor and a corridor surface for a road. For a residential development, I use FeatureLine to grade the lot side swale. I want create a script that gets the first vertex of the feature line (usually adjacent to the corridor) and use the corridor elevation for that first vertex elevation. Then have a grade ahead of 2% to the second vertex. Once this is done, for the feature line data to be updated in the DWG. This way every time I adjust my corridor elevations, the featurelines will automatically adjust to new elevation at the first vertex and the grade ahead.

I am using Civil 3D 2026. with Dynamo version 3.6.1

Thank you so much for reading and for the help!

Hi mate,

This would be a good task to learn Dynamo with. You will get more benefit in the long run if you learn how it works, not least because at some point the code may get broken by updates.

With that said please try the below, I think this will work if not it should give you some ideas of nodes that could be used.

You would need to run this in automatic mode for it to update with changes to corridor elevations or run it in Dynamo player after each change.

Feature line first vertex from corridor surface.dyn (27.2 KB)

Have you tried snippet below. It will/should auto adjust when your corridors surface updates.

Thank you guys for the feedback!

Thanks for the dynamo I will try to recreate it so that I can a better idea on how run other items.

Regarding the elevation editor, Ive known about it. Usually I can only do it for when I first create the featureline. But If have to revise the corridor, I dont think the relative surface is dynamic.

For example, I just moved my corridor around and updated everything on my toolspace. But the elevation at the corridor is different from the feature line. If theres something I need to click to update, please share :slight_smile:

switch this to relative. I think you would just do the one point touching the corridor. Note that this only works for elevation, I would love to figure out a way that also does x,y location aswell.