question

Khalid Kayal avatar image
0 Likes"
Khalid Kayal asked Phil BoBo answered

How to run a model and pull results from Flexsim using Visual Studio?

I want to create a c# code using Visual Studio 2015 that will run a simulation model and pull some results. I came across this article

https://www.flexsim.com/community/forum/showthread.php?t=382

However, the solution file is not working and it's giving me errors.

FlexSim 16.2.0
visual studioc#
· 1
5 |100000

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

Matt Long avatar image Matt Long commented ·

I'm not sure if that link is giving you the latest DLL maker. Here's the bitbucket link: https://bitbucket.org/flexsim/flexsim-dll-maker If you're getting errors building the project, post the error log.

1 Like 1 ·

1 Answer

·
Phil BoBo avatar image
4 Likes"
Phil BoBo answered

You linked to an article that explains how you can make a C++ dll that you can execute from within FlexSim.

That is unrelated to running a model from C# code using Visual Studio 2015.

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.

5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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