Once you have finished your BIML script (using BIDS SQL Server 2008) to create the SSIS package you simply right click the BIML file and click Generate SSIS packages.
How do i generate the SSIS packges via code e.g. C# or SQL? I can imagine some kinda of shell script to the BimlEngine.dll e.g. BimlEngine.dll -"myFileServer\myBimlScript", "generate SSIS packages"
I have found this c# code project https://github.com/jgsato/BimlGen
and in particular this file https://github.com/jgsato/BimlGen/blob/master/BimlGenerator.cs
i'm just not sure how to use it.
Thanks for your help.