Index: DamEngine/branches/DamEngine 19.2/src/Deltares.DamEngine.Interface/EngineInterface.cs =================================================================== diff -u -r3249 -r3291 --- DamEngine/branches/DamEngine 19.2/src/Deltares.DamEngine.Interface/EngineInterface.cs (.../EngineInterface.cs) (revision 3249) +++ DamEngine/branches/DamEngine 19.2/src/Deltares.DamEngine.Interface/EngineInterface.cs (.../EngineInterface.cs) (revision 3291) @@ -150,7 +150,19 @@ { SendMessage(new LogMessage() { MessageType = LogMessageType.Info, Message = Resources.StartValidation }); List validationMessages = null; - //validationMessages = DamProjectData.Validate(); or something like this.... + + try + { + DamProjectData.Dike.Validate(DamProjectData.DamProjectType == DamProjectType.Operational); + } + catch (Exception e) + { + var validationMessage = new LogMessage(LogMessageType.Error,null, e.Message); + validationMessages = new List {validationMessage}; + DamProjectData.CalculationMessages = new List(); + } + + // Local validation can give messages and these have to be added to the results but note that there // already can be messages added by instantiation of the interface too. So add the local to the global if (validationMessages != null && validationMessages.Count > 0)