Creating a new alignment with Dynamo script deletes the previously created alignment

Hi all,

I have several polylines that I want to model one at a time as an alignment (will then take the alignment and model a pressure network for it - next step). The script I’ve put together allows the user to select the polyline they are modelling, input a name of the alignment and the layer the alignment will sit on.

Here is the script layout:

The issue I’m having is that once I create the first alignment, say Test Alignment1, when I run the script for TestAlignment2, TestAlignment1 gets deleted.

How can I fix this?

Thank you for your help in advance.

This is Object Binding (the Civil 3D equivalent of Element Binding). Everything you need to know about it can be found here: Object Binding | Dynamo

Thanks - exactly what I didn’t know.

1 Like