private IGeometry GetSelectedLineFeature()
{
IMap pMap = m_hookHelper.FocusMap;
IEnumFeature enumFeature = (IEnumFeature)pMap.FeatureSelection;
IGeometry selectedPath = null;
IFeature pFeat = enumFeature.Next();
while (pFeat != null)
{
if (pFeat.Shape.GeometryType == esriGeometryType.esriGeometryPolyline)
{
selectedPath = (IGeometry)pFeat.Shape;
break;
}
pFeat = enumFeature.Next();
}
return selectedPath;
}