Save the model using code given a path

Save the model using code given a path

pasichp
Not applicable
100 Views
1 Reply
Message 1 of 2

Save the model using code given a path

pasichp
Not applicable

[ FlexSim 24.1.0 ]

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?

0 Likes
Accepted solutions (1)
101 Views
1 Reply
Reply (1)
Message 2 of 2

jason_lightfoot_adsk
Autodesk
Autodesk
Accepted solution

Try:

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