flexsim_save_model_as
Save the open FlexSim model to a new .fsm path and continue working there, making the copy the active model so later operations target the new file instead of the original.
Instructions
Save the window model under a NEW path and CONTINUE THERE (window backend only).
True Save-As (a filesystem copy alone would leave FlexSim showing the old file,
diverging bookkeeping from reality): saves the open window, copies the file to
dest_path, OPENS the copy in a new FlexSim window, waits for its title to appear,
then closes the old window (by its exact previous title) and repoints
_gui_model_path/_gui_model_name/_current_model to dest. The new window connects
by itself in ~20 s (On Model Open runs mcp_start()); check flexsim_gui_status.
If the new window never appears, nothing is closed or repointed (safe).
Unlike flexsim_save_model (snapshot copy, state stays), dest becomes active.
Bloquea dest == plantilla (GUI o bridge).
Args:
dest_path: new .fsm file (must not exist, never the template).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |