question

Manuel Sinco avatar image
0 Likes"
Manuel Sinco asked Jason Lightfoot edited

Commands needed

Hello,

I was wondering if there exist any command for saving the whole model and to clear the system console? I was looking for them in the Command Reference but I was not able to find anything. Could you help me with this?

I found the cmdsaveas() command but it opens a Save As window and I only want it to save it by itself and clearconsole() but this is for the output console not the system.

I would appreciate your help.

Thank you.

Manuel.

FlexSim 19.1.2
flexsim 19.1.2commands
5 |100000

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

1 Answer

Julio R avatar image
0 Likes"
Julio R answered Jason Lightfoot edited

Hello Manuel,

This commands does the same as pressing the save icon on the menu:

applicationcommand("save");

To close the system console I tried this command>

closeview(views().find("active/MainPanel/BackPanel/SplitterXPane/SplitterYPane/ToolTabPane/TabControl/SystemConsole"));

This will only work if the system console is its normal place (down the 3D view) and it wont work fully, since the system console will turn gray and it wont show any error messages until you close it and it shows up again.

I will look for a better way to close the system console. I hope this help you until then.

· 5
5 |100000

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

Manuel Sinco avatar image Manuel Sinco commented ·

Thank you Julio for your answer.

Regarding the System console, I don't want to close it; what I want it to just clear it, based on that I doing testings and I want to know the errors that might occur during each run.

I appreciate the help as usual, thank you!

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Manuel Sinco commented ·

If you do your runs using the experimenter then you can view each run/replication's system console as part of the results.

0 Likes 0 ·
Manuel Sinco avatar image Manuel Sinco Jason Lightfoot ♦♦ commented ·

No, I'm running every time using a GUI so I want it to clear it every time I run it.

0 Likes 0 ·
Show more comments