question

Martin K6 avatar image
0 Likes"
Martin K6 asked Joerg Vogel answered

How can you open and run model from Python script?

Hello,

I would like to ask how is it possible to open and run simple model from python script? Is there any simple example or template to work with?

Thank you.


Martin

FlexSim 22.1.3
pythonscriptopen modelmodel run
· 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.

Jacob W2 avatar image Jacob W2 ♦ commented ·

Hi @Martin K6,

We haven't heard back from you. Were you able to solve your problem? If so, please add and accept an answer to let others know the solution. Or please respond to the previous comment so that we can continue to help you.

If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question, or you can contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·

1 Answer

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered

FlexSim is a program. You can call and execute a program in Python in your system. You need to know how to run FlexSim from command line.

And this question is most likely better be asked in a python forum.

· 4
5 |100000

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

Martin K6 avatar image Martin K6 commented ·
Hello, thanks for your answer. Would it be possible to give some simple example with the source code?

Thanky you.

0 Likes 0 ·
Ralf Gruber avatar image Ralf Gruber ♦ Martin K6 commented ·

Martin,

here is a link to FlexSim´s documentation regarding Controlling FlexSim Externally:
https://docs.flexsim.com/en/22.2/Reference/DeveloperAdvancedUser/ControllingFlexSimExternally/ControllingFlexSimExternally.html


1 Like 1 ·
Martin K6 avatar image Martin K6 Ralf Gruber ♦ commented ·
Ok, so it is still the best way to use command line/batch file for opening and running model.
0 Likes 0 ·
Show more comments

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.