C3D 2012
dot net
c#
what is the method to create a superelevation curve in an alignment?
When I try to apply this:
Alignment align1 = ts.GetObject(per1.ObjectId, OpenMode.ForWrite) as Alignment;
align1.SuperelevationCriticalStations.Add(align1.StartingStation, SuperelevationCriticalStationType.BeginNormalCrown);
I get error: Value does not fall within the expected range
I'm guessing the error is caused by the fact that the selected alignment has no superelevation curves.
Thx.
Kevin.