diff --git a/ArcGISTemplateSharedFunctions/ConfigDef.cs b/ArcGISTemplateSharedFunctions/ConfigDef.cs
index e3ad152..b37707b 100644
--- a/ArcGISTemplateSharedFunctions/ConfigDef.cs
+++ b/ArcGISTemplateSharedFunctions/ConfigDef.cs
@@ -399,6 +399,10 @@ public ConstructLineWithPointsDetails()
public string TwoPointLines { get; set; }
[XmlElement("PointAtVertices")]
public string PointAtVertices { get; set; }
+
+ [XmlElement("Store_Order")]
+ [System.ComponentModel.DefaultValue("Active")]
+ public string Store_Order { get; set; }
}
@@ -441,6 +445,10 @@ public ConnectClosestDetails()
[XmlElement("Reset_Flow")]
[System.ComponentModel.DefaultValue("NONE")]
public string Reset_Flow { get; set; }
+
+ [XmlElement("Store_Order")]
+ [System.ComponentModel.DefaultValue("Active")]
+ public string Store_Order { get; set; }
}
diff --git a/ArcGISTemplateSharedFunctions/UserMessages.Designer.cs b/ArcGISTemplateSharedFunctions/UserMessages.Designer.cs
index 9acfe43..bce5383 100644
--- a/ArcGISTemplateSharedFunctions/UserMessages.Designer.cs
+++ b/ArcGISTemplateSharedFunctions/UserMessages.Designer.cs
@@ -4669,7 +4669,7 @@ internal static string DontFindFlowEltReturnStatement {
}
///
- /// Looks up a localized string similar to Dynamic Value Table is required to activate the Attribute Assistant.
+ /// Looks up a localized string similar to DynamicValue Table is required to activate the Attribute Assistant.
///
internal static string dynamicValueTableMissing {
get {
diff --git a/ArcGISTemplateSharedFunctions/UserMessages.es-ES.resx b/ArcGISTemplateSharedFunctions/UserMessages.es-ES.resx
index 8abff96..5c05234 100644
--- a/ArcGISTemplateSharedFunctions/UserMessages.es-ES.resx
+++ b/ArcGISTemplateSharedFunctions/UserMessages.es-ES.resx
@@ -3491,7 +3491,7 @@
The field type does not match the value
- Dynamic Value Table is required to activate the Attribute Assistant
+ DynamicValue Table is required to activate the Attribute Assistant
Needs Translation
\ No newline at end of file
diff --git a/ArcGISTemplateSharedFunctions/UserMessages.es.resx b/ArcGISTemplateSharedFunctions/UserMessages.es.resx
index e736ae2..bedf8da 100644
--- a/ArcGISTemplateSharedFunctions/UserMessages.es.resx
+++ b/ArcGISTemplateSharedFunctions/UserMessages.es.resx
@@ -3490,7 +3490,7 @@
The field type does not match the value
- Dynamic Value Table is required to activate the Attribute Assistant
+ DynamicValue Table is required to activate the Attribute Assistant
Needs Translation
\ No newline at end of file
diff --git a/ArcGISTemplateSharedFunctions/UserMessages.fr-FR.resx b/ArcGISTemplateSharedFunctions/UserMessages.fr-FR.resx
index 8f8e902..53c3c08 100644
--- a/ArcGISTemplateSharedFunctions/UserMessages.fr-FR.resx
+++ b/ArcGISTemplateSharedFunctions/UserMessages.fr-FR.resx
@@ -2643,7 +2643,7 @@
Needs Localization
- Dynamic Value Table is required to activate the Attribute Assistant
+ DynamicValue Table is required to activate the Attribute Assistant
Needs Translation
\ No newline at end of file
diff --git a/ArcGISTemplateSharedFunctions/UserMessages.resx b/ArcGISTemplateSharedFunctions/UserMessages.resx
index d77f3c4..2d181d6 100644
--- a/ArcGISTemplateSharedFunctions/UserMessages.resx
+++ b/ArcGISTemplateSharedFunctions/UserMessages.resx
@@ -2650,6 +2650,6 @@
The field type does not match the value
- Dynamic Value Table is required to activate the Attribute Assistant
+ DynamicValue Table is required to activate the Attribute Assistant
\ No newline at end of file
diff --git a/Configs/loaded.water.config b/Configs/loaded.water.config
index b21ca42..0a1b101 100644
--- a/Configs/loaded.water.config
+++ b/Configs/loaded.water.config
@@ -435,8 +435,8 @@
false
- false
-
+ false
+
@@ -459,7 +459,7 @@
Sewer Manholes
- Manhole
+ Manhole
@@ -523,6 +523,7 @@
18" PVC Storm
450
Digitized
+
diff --git a/Water Utilities Desktop Tools/WaterUtilitiesDesktopAddIn/ConstructionTools.cs b/Water Utilities Desktop Tools/WaterUtilitiesDesktopAddIn/ConstructionTools.cs
index b16c689..b1fec8f 100644
--- a/Water Utilities Desktop Tools/WaterUtilitiesDesktopAddIn/ConstructionTools.cs
+++ b/Water Utilities Desktop Tools/WaterUtilitiesDesktopAddIn/ConstructionTools.cs
@@ -496,7 +496,10 @@ private void OnSketchFinished()
twoPoint = CreateLineWithEndPoints.CreatePoints(ArcMap.Application, ConfigUtil.GetLinePointAtEndsConfig(), m_edSketch.Geometry as IPolyline, (IFeatureLayer)m_editor.CurrentTemplate.Layer, true, out pLstFeat);
}
-
+ foreach (IFeature pFt in pLstFeat)
+ {
+ pFt.Store();
+ }
if (twoPoint)
{
@@ -531,10 +534,7 @@ private void OnSketchFinished()
}
- foreach (IFeature pFt in pLstFeat)
- {
- pFt.Store();
- }
+
pLstFeat = null;
m_editor.StopOperation(A4LGSharedFunctions.Localizer.GetString("CrtLnWithPts"));
@@ -780,73 +780,97 @@ private void OnShapeConstructorChanged()
private void OnSketchFinished()
{
- ConfigUtil.type = "water";
- Keys ModKey = Control.ModifierKeys;
+ try
+ {
- // Send a shift-tab to hide the construction toolbar
- m_editor.StartOperation();
- IFeature pFeat = null;
- returnFeatArray pRetVal = null;
- if (ModKey == Keys.Shift)
- {
- pFeat = Globals.CreateFeature(m_edSketch.Geometry, m_editor.CurrentTemplate, m_editor, ArcMap.Application, false, false, true);
- pRetVal = ConnectClosest.ConnectClosestFeatureAtPoint(ArcMap.Application, ConfigUtil.GetConnectClosestConfig(), m_edSketch.Geometry as IPoint, m_editor.CurrentTemplate.Layer.Name, true, ModKey);
- // pFeat.Store();
- }
- else if (ModKey == (Keys.Control | Keys.Shift))
- {
- pFeat = Globals.CreateFeature(m_edSketch.Geometry, m_editor.CurrentTemplate, m_editor, ArcMap.Application, false, false, true);
- pRetVal = ConnectClosest.ConnectClosestFeatureAtPoint(ArcMap.Application, ConfigUtil.GetConnectClosestConfig(), m_edSketch.Geometry as IPoint, m_editor.CurrentTemplate.Layer.Name, true, ModKey);
- // pFeat.Store();
- }
- else if (ModKey == Keys.Control)
- {
- pFeat = Globals.CreateFeature(m_edSketch.Geometry, m_editor.CurrentTemplate, m_editor, ArcMap.Application, false, true, true);
- pRetVal = ConnectClosest.ConnectClosestFeatureAtPoint(ArcMap.Application, ConfigUtil.GetConnectClosestConfig(), m_edSketch.Geometry as IPoint, m_editor.CurrentTemplate.Layer.Name, true, ModKey);
- // pFeat.Store();
- }
- else
- {
+ ConfigUtil.type = "water";
+ Keys ModKey = Control.ModifierKeys;
- pFeat = Globals.CreateFeature(m_edSketch.Geometry, m_editor.CurrentTemplate, m_editor, ArcMap.Application, false, true, true);
- pRetVal = ConnectClosest.ConnectClosestFeatureAtPoint(ArcMap.Application, ConfigUtil.GetConnectClosestConfig(), m_edSketch.Geometry as IPoint, m_editor.CurrentTemplate.Layer.Name, true, ModKey);
+ // Send a shift-tab to hide the construction toolbar
- }
- pFeat.Store();
- foreach (IFeature featus in pRetVal.Features)
- {
- featus.Store();
+ m_editor.StartOperation();
+ IFeature pFeat = null;
+ returnFeatArray pRetVal = null;
+ if (ModKey == Keys.Shift)
+ {
+ pFeat = Globals.CreateFeature(m_edSketch.Geometry, m_editor.CurrentTemplate, m_editor, ArcMap.Application, false, false, true);
+ pRetVal = ConnectClosest.ConnectClosestFeatureAtPoint(ArcMap.Application, ConfigUtil.GetConnectClosestConfig(), m_edSketch.Geometry as IPoint, m_editor.CurrentTemplate.Layer.Name, true, ModKey);
+ // pFeat.Store();
+ }
+ else if (ModKey == (Keys.Control | Keys.Shift))
+ {
+ pFeat = Globals.CreateFeature(m_edSketch.Geometry, m_editor.CurrentTemplate, m_editor, ArcMap.Application, false, false, true);
+ pRetVal = ConnectClosest.ConnectClosestFeatureAtPoint(ArcMap.Application, ConfigUtil.GetConnectClosestConfig(), m_edSketch.Geometry as IPoint, m_editor.CurrentTemplate.Layer.Name, true, ModKey);
+ // pFeat.Store();
+ }
+ else if (ModKey == Keys.Control)
+ {
+ pFeat = Globals.CreateFeature(m_edSketch.Geometry, m_editor.CurrentTemplate, m_editor, ArcMap.Application, false, true, true);
+ pRetVal = ConnectClosest.ConnectClosestFeatureAtPoint(ArcMap.Application, ConfigUtil.GetConnectClosestConfig(), m_edSketch.Geometry as IPoint, m_editor.CurrentTemplate.Layer.Name, true, ModKey);
+ // pFeat.Store();
+ }
+ else
+ {
- }
+ pFeat = Globals.CreateFeature(m_edSketch.Geometry, m_editor.CurrentTemplate, m_editor, ArcMap.Application, false, true, true);
+ pRetVal = ConnectClosest.ConnectClosestFeatureAtPoint(ArcMap.Application, ConfigUtil.GetConnectClosestConfig(), m_edSketch.Geometry as IPoint, m_editor.CurrentTemplate.Layer.Name, true, ModKey);
- if (pRetVal.Options == "DIGITIZED")
- {
- Globals.GetCommand("A4WaterUtilities_EstablishFlowDigitized", ArcMap.Application).Execute();
+ }
+ //INetworkFeature netFeature = null;
+ //netFeature = pFeat as INetworkFeature;
+ //if (netFeature != null)
+ //{
+ // netFeature.Connect();
+ //}
+ pFeat.Store();
+ foreach (IFeature featus in pRetVal.Features)
+ {
- }
- else if (pRetVal.Options == "ROLE")
- {
- Globals.GetCommand("A4WaterUtilities_EstablishFlowAncillary", ArcMap.Application).Execute();
- }
- else if (pRetVal.Options == "Ancillary".ToUpper())
- {
- Globals.GetCommand("A4WaterUtilities_EstablishFlowAncillary", ArcMap.Application).Execute();
- }
- else
- {
- }
- // addLat.AddLateralAtPoint(m_edSketch.Geometry as IPoint, m_editor.CurrentTemplate.Layer.Name);
+ //netFeature = featus as INetworkFeature;
+ //if (netFeature != null)
+ //{
+ // netFeature.Connect();
+ //}
+ featus.Store();
+
+ }
+
+ if (pRetVal.Options == "DIGITIZED")
+ {
+ Globals.GetCommand("A4WaterUtilities_EstablishFlowDigitized", ArcMap.Application).Execute();
+
+ }
+ else if (pRetVal.Options == "ROLE")
+ {
+ Globals.GetCommand("A4WaterUtilities_EstablishFlowAncillary", ArcMap.Application).Execute();
+ }
+ else if (pRetVal.Options == "Ancillary".ToUpper())
+ {
+ Globals.GetCommand("A4WaterUtilities_EstablishFlowAncillary", ArcMap.Application).Execute();
+ }
+ else
+ {
+ }
+ // addLat.AddLateralAtPoint(m_edSketch.Geometry as IPoint, m_editor.CurrentTemplate.Layer.Name);
- m_editor.StopOperation(A4LGSharedFunctions.Localizer.GetString("CrtAssetAndLat"));
+ m_editor.StopOperation(A4LGSharedFunctions.Localizer.GetString("CrtAssetAndLat"));
- //IEnvelope pEnv = pFeat.Shape.Envelope;
- //pEnv.Expand(8, 8, true);
+ //IEnvelope pEnv = pFeat.Shape.Envelope;
+ //pEnv.Expand(8, 8, true);
- (ArcMap.Application.Document as IMxDocument).ActiveView.PartialRefresh(esriViewDrawPhase.esriViewAll, pFeat, null);
- //pEnv = null;
- pFeat = null;
- pRetVal = null;
+ (ArcMap.Application.Document as IMxDocument).ActiveView.PartialRefresh(esriViewDrawPhase.esriViewAll, pFeat, null);
+ //pEnv = null;
+ pFeat = null;
+ pRetVal = null;
+ }
+ catch (Exception ex)
+ {
+
+ MessageBox.Show(A4LGSharedFunctions.Localizer.GetString("ErrorInThe") + A4LGSharedFunctions.Localizer.GetString("ALT_1") + ex.ToString());
+ m_editor.AbortOperation();
+ }
+ finally { }
}
diff --git a/Water Utilities Desktop Tools/WaterUtilitiesDesktopFunctions/ConstructionTools.cs b/Water Utilities Desktop Tools/WaterUtilitiesDesktopFunctions/ConstructionTools.cs
index ac0228d..8426709 100644
--- a/Water Utilities Desktop Tools/WaterUtilitiesDesktopFunctions/ConstructionTools.cs
+++ b/Water Utilities Desktop Tools/WaterUtilitiesDesktopFunctions/ConstructionTools.cs
@@ -510,7 +510,6 @@ public static returnFeatArray ConnectClosestFeatureAtPoint(IApplication app, Lis
{
pLine = Globals.CreateFeature(pNewPoly, pEditTemp, editor, app, false, false, true);
}
- pLine.Store();
pRetFeature.Add(pLine);
if ((connectClosestLayers[k] as ConnectClosestDetails).Reset_Flow != null)