C# Civil station equation collection

Hi!

I wanted to create a station equation, but I can set it, but I can't get it.

Here is my set code:
StationEquationCollection sec = new StationEquationCollection(HAlignment); sec.AddEquation( new StationEquation( 0, 0, StationEquationType.Increasing ) ); HAlignment.StationEquations = sec;
Here is my get code:
StationEquationCollection sec = HAlignment.StationEquations; for (ulong i = 0; i < sec.Count; i++) { StationEquation se = sec.get_Equation(i); ed.WriteMessage( "\n" + se.RawStation.ToString() + "\n" + se.StationForward.ToString() + "\n" + se.EquationType.ToString() ); }

What could be the problem? Thanks for the help!

Comments

  • Hi

    This is an error in the .NET API. Error has been fixed, updated API will be included in BricsCAD V22.2 release.
    Thanks for the feedback.

    Andrej