how to ouput error message without opening flexsim?

how to ouput error message without opening flexsim?

_382903484
Not applicable
89 Views
2 Replies
Message 1 of 3

how to ouput error message without opening flexsim?

_382903484
Not applicable

[ FlexSim 19.0.0 ]

Hi,

I am wondering how to export error message in system console to external files when runing model silently? Thanks!

.

0 Likes
Accepted solutions (1)
90 Views
2 Replies
Replies (2)
Message 2 of 3

philboboADSK
Autodesk
Autodesk
Accepted solution

You can use the following command to get the system console output when running FlexSim silently:

string systemConsoleText = applicationcommand("getconsoletext", 2);

Attached (runscriptdemo.zip) is a zip file containing 3 files that show an example of how you can silently run a FlexSim model and then export results to a text file, including the output and system console text.

Extract these 3 files to your computer somewhere (I put them on my Desktop).

Edit runScriptDemo.bat so that it has correct paths to where you have installed FlexSim, where the model is, and where the script file is.

"C:\Program Files\FlexSim 2019\program\flexsim.exe" "C:\Users\username\Desktop\test_1.fsm" /maintenance nogui_disablemsg_runscript /scriptpath "C:\Users\username\Desktop\script.txt"


Phil BoBo
Sr. Manager, Software Development
0 Likes
Message 3 of 3

_382903484
Not applicable

@phil.bobo really thanks for you response, it's really helpful! Here I have one more question. How to make experiments of parallel operation with different parameters in one model when flexsim running silently, if I don't use experimenter built in flexism? Thansk again!


0 Likes