Alignment modification using dynamo

Hi,

I have one alignment in civil 3d which contains tangents and curves of type (spiral-curve-spiral). I need to modify the curve details such radius or transition lengths etc. in a way that it fulfills certain criteria for my alignment.
The criteria are like:

  1. I have some another as built alignment line following parapet or boundary of my viaduct.
  2. I have some another alignment following shear connectors of my viaduct whose distance should always be in the range of 0.980m to 1.9m from the main alignment.
  3. If i want to specify some points like center of pier and then their distances from the modified alignment then this should also be in a particular range.
  4. Another criteria is regarding rate of change of cant, applied gradient etc which will be mathematical calculations.

The thing is i need to know is that
Can we intelligently modify the curve parameters like radius and spiral lengths based on such criterias in dynamo? If yes, what’s the way to start?