question

Yogesh H2 avatar image
0 Likes"
Yogesh H2 asked Yogesh H2 edited

Run a FlexSim Model from command line

Hello Flexsim Support Team,

Post model execution, I am exporting the results to the database and excel and adding a "Simulation Completed" text in a result.txt file.

C:\Users\myusername> "C:\Program Files\FlexSim 2025\program\flexsim.exe" "C:\Users\myusername\Desktop\RunFile_MachineAssign\ProjectModel.fsm" /maintenance runscript /scriptpath "C:\Users\myusername\Desktop\RunFile_MachineAssign\script.txt"

I ran the model using above code from command prompt without "nogui_disablemsg " flag it worked.

But when I used the below code with nogui_disablemsg flag. it is not working.

C:\Users\myusername> "C:\Program Files\FlexSim 2025\program\flexsim.exe" "C:\Users\myusername\Desktop\RunFile_MachineAssign\ProjectModel.fsm" /maintenance nogui_disablemsg_runscript /scriptpath "C:\Users\myusername\Desktop\RunFile_MachineAssign\script.txt"

Could you please help me understand why it is not working? Is there anything wrong with the code above?


Thanks,

Yogesh

FlexSim 25.0.4
export datacommand promptnogui flag
5 |100000

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

0 Answers