question

Jackie Ho avatar image
0 Likes"
Jackie Ho asked Ben Wilson answered

Run Flexsim.exe and open the file at the same time.

I’d like to through the code “ trigger flexsim 7.7 exe” that I wrote by DOS system, I hope once execution the program, thenit couldtrigger to run Flexsim main program, and open one model file at the same time (without choosing and clicking the file separately.) In another word, I want to open Flexsim main program and one of Flexsim’s model file synchronously by my trigger exe. Is it available? If yes, how should I do? Kindly advise, thanks!

FlexSim 7.7.4
trigger
5 |100000

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

Ben Wilson avatar image
2 Likes"
Ben Wilson answered

Here is some documentation for how to start FlexSim from the command line (or a batch file), open a model, and even run arbitrary FlexScript upon opening it, along with other options (like running silently with no interface or message prompts):

https://answers.flexsim.com/answers/21375/view.html

5 |100000

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

jing.c avatar image
1 Like"
jing.c answered

Hi, Jackie.

Try to create a new text document, and write the path of your fsm. file, for example "C:\Users\UserName\Desktop\XXX.fsm" if the file XXX is in the desktop of your computer.

Save it and change .txt to .bat and run it.

May it helps.

flexsimcmd.txt


5 |100000

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