How to use GetAdjacentEdges equivalent in C# ?

2451
1
08-29-2012 12:57 AM
XavierDupessey1
New Contributor
Hello,

I am creating a custom ITraceTask (for both ArcGIS Desktop and new SOE capability).
I need to get the adjacent edges EIDs from a junction EID.

In VB6, I know that it was possible to use the function INetTopology.GetAdjacentEdges(...) but it is not available in C#.

According to the documentation, I should use the method IForwardStarGEN.QueryAdjacentEdges(...) but how can I create an instance of "IForwardStarGEN" ??

The method CreateForwardStar from INetwork gives me an instance of "IForwardStar" but not "IForwardStarGEN".

Thank you in advance,
Xavier
0 Kudos
1 Reply
GregRieck
Occasional Contributor III
var forwardStar = (IForwardStarGEN)geomNetwork.Network.CreateForwardStar(false, null, null, null, null);
0 Kudos