// C# sample Code to run the app:

private void button1_Click(object sender, EventArgs e)
{
   ProcessStartInfo pInfo = new ProcessStartInfo();

    // the exe file to start
    pInfo.FileName = @"C:\SheetMetal2DXF\SheetMetal2DXF.exe";


    // Argument 1: Sheet Metal Part
    // Argument 2: the definition txt-File
    // NOTE: each Argument has to be in brackets separated by a space ("argument1" "argument2") like the sample below:

    pInfo.Arguments = "\"" + @"D:\Inventor2024\Migration\224455.ipt" + "\" \"" + @"C:\SheetMetal2DXF\SheetMetal_Def_01.txt" + "\"";

    // Seen as argument string this is: "D:\Inventor2024\Migration\224455.ipt" "C:\SheetMetal2DXF\SheetMetal_Def_01.txt"


    Process p = new Process();
    p.StartInfo = pInfo;

    p.Start();

    p.WaitForExit();

    MessageBox.Show(p.ExitCode.ToString());

    this.Close();
    return;
}