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.