C#
public bool FindStationAndElevationAtXY( double x, double y, ref double station, ref double elevation ) |
I don´t understand this method. API documentation says that "Finds the station and elevation values at the given X,Y coordinate." but this method return a bool value.
I don´t understand neither "ByRef".
Any samples please?
Thank you.
Solved! Go to Solution.
Solved by joantopo. Go to Solution.
Point3d pt = ed.GetPoint("\nClicka un punto sobre la visualización del perfil: ").Value; double elevacion=0; double pk=0; pv.FindStationAndElevationAtXY(pt.X, pt.Y, ref pk, ref elevacion);
Hi,
I think the API Ref document has very clear explanation on this :
public bool FindStationAndElevationAtXY( double x, double y, ref double station, ref double elevation )
Parameters
x Type: System.Double
The X coordinate in the profile view's coordinate system.
y Type: System.Double
The Y coordinate in the profile view's coordinate system.
station Type: System.Double
Returns the corresponding station.
elevation Type: System.Double
Returns the corresponding elevation.
I see you already resolved it, however, any feedback to us to improve the API documentation is always welcome !
Cheers,
Partha