// See https://aka.ms/new-console-template for more information using IStation; using IStation.Epanet; using Microsoft.IdentityModel.Logging; using System.Text; using Yw; var model_file = Path.Combine( AppDomain.CurrentDomain.BaseDirectory, "easy.inp"); var temp_id_build = new StringBuilder(31); var err = EpanetMethods.ENopen(model_file, "", ""); if ((int)err > 6) { throw new Exception($"ENopen:{err}"); } err = EpanetMethods.ENopenH(); if ((int)err > 6) { throw new Exception($"ENopenH:{err}"); } Console.ReadKey();