I want to get the station of an intersection between alignments by C#. I saw a post that there is no API for intersection yet (maybe in 2018??). An Interserction has a label option to see stations of the alignments.
I can get the intersection points (found a post, but have not tried it yet). If I create a report station offset to points I can make an export, and I see the station numbers.
I was wondering: is there a another way to get the station of the cogo points (created by .IntersectWith) on the alignment in C#?
Solved! Go to Solution.
Solved by Jeff_M. Go to Solution.
@marcelwg75, you can use the Curve object (which Alignments derive from) and use the IntersectWith(otherAlign) method. Then use the StationOffset() method to get the raw stations, and finally, use the GetStationStringWithEquations() method to get the station string.
For the points, you would do essentially the same thing, except you already have the Point3D values for use with the StationOffset() method.
Thnx.
I used Alignmentx.IntersectWith(Alignmenty) and then used the intersection points in the StationOffset() method.
Can't find what you're looking for? Ask the community or share your knowledge.