This collection of files is used in creating a dfs2 file from a dfs1 file (all item values are constant in y-direction)

This SDK script requires that MIKE Core SDK 2025 has been installed.


In order to build the executionable, CreateDfs2FromDfs1.exe, create a new ascii file called e.g. 'build.bat', and copy the following content to it:

set csc=C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe
set sdkBin=C:\Program Files (x86)\DHI\MIKE Core SDK\2025\bin\x64
%csc% /r:"%sdkBin%\DHI.PFS.dll" /r:"%sdkBin%\DHI.Generic.MikeZero.DFS.dll" /r:"%sdkBin%\DHI.Generic.MikeZero.EUM.dll" /r:"%sdkBin% \DHI.Projections.dll"  /r:"%sdkBin%\DHI.Mike.Install.dll" /r:"netstandard.dll" CreateDfs2FromDfs1.cs
pause



The file 'CreateDfs2fromDfs1.pfs' is an ascii file that contains the necessary input parameters for the conversion


The script can be executed by the following command in a dos-prompt:  
            CreateDfs2FromDfs1.exe .\CreateDfs2FromDfs1.pfs


A small example file, TestInput.dfs1, is included as well.


