question

Przemyslaw Pasich avatar image
0 Likes"
Przemyslaw Pasich asked Jason Lightfoot answered

Save the model using code given a path

I want to save my model using flexscript and I know the path under which I want to save it. The command cmdsaveas() does almost what I want with the difference that it first prompts the user to indicate the path - and I want to skip this indication step. I searched the documentation for anything along the lines of cmdsave(str path) to no avail. Any suggestions?

FlexSim 24.1.0
flexscriptsave
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

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered

Try:

applicationcommand("executescripts",node("MAIN:/project/events/OnSaveModelAutoIncrement"),mySavePath,0);
5 |100000

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