question

Joly N avatar image
1 Like"
Joly N asked Phil BoBo answered

Tutorial to create a client C# to use the flexsim api

Hello , I am student, and I am trying to create a client in C# to call flexsim function to running in background the simulation.

From the client I need to sent to flexsim a excel model, and then retreive in the client c# the data from the simulation.

Can anyone point me how to do this.

Best regards,

Jolynice

FlexSim 17.2.4
c# visual studio client
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Phil BoBo avatar image
4 Likes"
Phil BoBo answered

Here is a link to an answer that explains how you can automatically configure and run a FlexSim model: https://answers.flexsim.com/questions/21116/automatically-configure-and-run-a-flexsim-model.html

You can evoke applications, such as FlexSim, from C# using the .NET Framework System.Diagnostics.Process object.

Use the OnModelOpen trigger to import the data from Excel, and write the simulation data output to text files that your C# application can read.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.