aht505

Get the Feature from EdgeFlag in a network

Discussion created by aht505 on Jun 24, 2013
Latest reply on Jul 16, 2013 by ciava.at
I have a c# tool which is using Utility Network Analysis &  upstream trace technique...
It lets user put an edge flag(using the default add Edge Flag tool in arcmap)
Then i access that edge flag in my c# code using -


UID UIDUtilityExt = new UIDClass();
                UIDUtilityExt.Value = "esriEditorExt.UtilityNetworkAnalysisExt";
                this.m_utilNetExt = this.m_application.FindExtensionByCLSID(UIDUtilityExt);
INetworkAnalysisExtFlags naxFlags = m_utilNetExt as INetworkAnalysisExtFlags;

//I want the actual Feature( and lateron the feature class & ObjectID of that feature) that was specified for this flag -
naxFlags.EdgeFlag[0];


I did this - but its giving errors
(IEdgeFeature)naxFlags.EdgeFlag[0] ;

Please help...

thanks a lot

Outcomes