// Change the orientation of a control. Must be a crossing point.
public static void ChangeControlOrientation(EventDB eventDB, Id<ControlPoint> controlId, float newOrientation)
{
ControlPoint control = eventDB.GetControl(controlId);
Debug.Assert(control.kind == ControlPointKind.CrossingPoint);
control = (ControlPoint) control.Clone();
control.orientation = newOrientation;
eventDB.ReplaceControlPoint(controlId, control);
}