public static GetEIDArrayParameterType ( ) : VarType | ||
return | VarType |
private void UpdateSelectionEIDArrayParameterValues() { IMap map = ActiveMap; if (map == null) { return; } INAWindow naWindow = m_nax.NAWindow; INALayer naLayer = null; INAContext naContext = null; INetworkDataset nds = null; naLayer = naWindow.ActiveAnalysis; if (naLayer != null) { naContext = naLayer.Context; } if (naContext != null) { nds = naContext.NetworkDataset; } if (nds == null) { return; } string baseName = SubsetHelperUI.SelectionEIDArrayBaseName; VarType vt = SubsetHelperUI.GetEIDArrayParameterType(); List <string> sourceNames = SubsetHelperUI.FindParameterizedSourceNames(nds, baseName, vt); Dictionary <string, ILongArray> oidArraysBySourceName = SubsetHelperUI.GetOIDArraysBySourceNameFromMapSelection(map, sourceNames); SubsetHelperUI.UpdateEIDArrayParameterValuesFromOIDArrays(m_nax, oidArraysBySourceName, baseName); }
private void UpdateGraphicsEIDArrayParameterValues() { IGraphicsContainer graphics = ActiveGraphics; if (graphics == null) { return; } INAWindow naWindow = m_nax.NAWindow; INALayer naLayer = null; INAContext naContext = null; INetworkDataset nds = null; naLayer = naWindow.ActiveAnalysis; if (naLayer != null) { naContext = naLayer.Context; } if (naContext != null) { nds = naContext.NetworkDataset; } if (nds == null) { return; } string baseName = SubsetHelperUI.GraphicsEIDArrayBaseName; VarType vt = SubsetHelperUI.GetEIDArrayParameterType(); List <string> sourceNames = SubsetHelperUI.FindParameterizedSourceNames(nds, baseName, vt); IGeometry searchGeometry = SubsetHelperUI.GetSearchGeometryFromGraphics(graphics); SubsetHelperUI.UpdateEIDArrayParameterValuesFromGeometry(m_nax, searchGeometry, baseName); }
public static void ClearEIDArrayParameterValues(INetworkAnalystExtension nax, string baseName) { try { INAWindow naWindow = nax.NAWindow; INALayer naLayer = null; INAContext naContext = null; INetworkDataset nds = null; naLayer = naWindow.ActiveAnalysis; if (naLayer != null) { naContext = naLayer.Context; } if (naContext != null) { nds = naContext.NetworkDataset; } if (nds == null) { return; } VarType vt = SubsetHelperUI.GetEIDArrayParameterType(); List <string> sourceNames = SubsetHelperUI.FindParameterizedSourceNames(nds, baseName, vt); SubsetHelperUI.ClearEIDArrayParameterValues(nax, sourceNames, baseName); SubsetHelperUI.PushParameterValuesToNetwork(nax); } catch (Exception ex) { string msg = SubsetHelperUI.GetFullExceptionMessage(ex); MessageBox.Show(msg, "Clear Network Element Array Parameters"); } }