app_save_all
Persist all modified design documents to disk after in-memory edits; check still_dirty to confirm writes succeeded before DRC or closing.
Instructions
Flush every dirty Altium document to disk.
Mutation tools (pcb_place_tracks, move_component, modify_objects, ...) now mark documents as modified in-memory only. Changes stay fast because they skip per-operation disk writes. Call save_all at logical checkpoints, after a routing pass, before running DRC, or before closing, to persist everything.
Detach also triggers save_all automatically, so you don't need this as the very last step.
CHECK still_dirty, DO NOT ASSUME. Altium refuses to save while
a command is active in the editor and asks a human whether to
write a copy instead; DoFileSave does not raise when it declines.
MEASURED: this returned saved:true while every single save was
being refused. It now counts what is still modified afterwards,
and saved is false when anything is. If that happens, run
app_exit_active_command and retry.
Returns:
Dict with saved, still_dirty, and a reason when
documents remain unsaved.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||