Index: dam clients/DamUI/trunk/src/Dam/Data/DamEngineIo/FillXmlInputFromDamUi.cs =================================================================== diff -u -r491 -r499 --- dam clients/DamUI/trunk/src/Dam/Data/DamEngineIo/FillXmlInputFromDamUi.cs (.../FillXmlInputFromDamUi.cs) (revision 491) +++ dam clients/DamUI/trunk/src/Dam/Data/DamEngineIo/FillXmlInputFromDamUi.cs (.../FillXmlInputFromDamUi.cs) (revision 499) @@ -55,6 +55,7 @@ { var surfaceLine = dike.SurfaceLines2[i]; var inputSurfaceLine = new SurfaceLine(); + inputSurfaceLine.Name = surfaceLine.Name; inputSurfaceLine.Points = new SurfaceLinePoint[surfaceLine.CharacteristicPoints.Count]; for (int j = 0; j < surfaceLine.CharacteristicPoints.Count; j++) { @@ -77,9 +78,11 @@ for (int i = 0; i < locationCount; i++) { var location = dike.Locations[i]; - input.Locations[i] = new DamEngine.Io.XmlInput.Location(); - var waternetOptions = new LocationWaternetOptions(); + var inputLocation = new DamEngine.Io.XmlInput.Location(); + inputLocation.SurfaceLineName = location.SurfaceLine2.Name; + + var waternetOptions = new LocationWaternetOptions(); waternetOptions.PhreaticLineCreationMethod = ConversionHelper.ConvertToInputPhreaticLineCreationMethod(location.PLLineCreationMethod); waternetOptions.IntrusionVerticalWaterPressure = ConversionHelper.ConvertToInputIntrusionVerticalWaterPressure(location.IntrusionVerticalWaterPressure ?? IntrusionVerticalWaterPressureType.Standard); waternetOptions.PolderLevel = location.PolderLevel; @@ -105,7 +108,9 @@ waternetOptions.Pl1BelowCrestPolderside = location.PlLineOffsetBelowDikeTopAtPolder; waternetOptions.Pl1BelowShoulderCrestPolderside = location.PlLineOffsetBelowShoulderBaseInside; waternetOptions.Pl1BelowToeDikePolderside = location.PlLineOffsetBelowDikeToeAtPolder; - input.Locations[i].WaternetOptions = waternetOptions; + inputLocation.WaternetOptions = waternetOptions; + + input.Locations[i] = inputLocation; } } }