I have a Geometric Network of electric dataset and I'm working on a downstream trace addin using Forward Star.
While tracing, I need to obtain an extra attribute ("Feeder ID") from the source of my geometric network, which is not present in the network attributes.
So far, I have the EID of the Edge, and its geometry, during the trace iteration.
fStar.QueryAdjacentEdges(ref adjEdgeEIDS, ref adjRevOrientations, ref adjEdgeWeights);
for (int i = 0; i < adjEdgeCount; i++)
{
int connectedEdgeEID = adjEdgeEIDS;
IGeometry edgeGeom =(IGeometry) _geomNet.get_GeometryForEdgeEID(connectedEdgeEID);
// Get source of Edge EID to get FeederID Attribute
}
Now, I have researched a little and found out that this will be achieved through INetworkSource.
I can obtain SourceID and SourceOID from the INetworkElement of that edge.
What I am unable to figure out is that how to obtain the corresponding NetworkElement from the EID or Goemetry of the Edge I have.
I hope I am going in the right direction. Any help would be appreciated.
Note: I do not have the Network Analyst Extension. I need to do it without needing the Network analyst extension.