Recipes
Open your own .sg file
The Quick Start uses Job.OpenSample
to load a built-in sample so you don't need a project file. Once you
have your own .sg file, switch to Job.Open — same shape, but you
supply the path.
Check the file status first
Before opening, call File.Status to find out whether the file is in
a safe state. The response includes CanOpenSafely (a simple boolean),
a human-readable Description, and a RecommendedAction string you
can show to the user if something is wrong.
Open the file
Job.Open returns 409 Conflict if a job is already open — close it
first with Job.Close. If the file has unsaved temporary files from a
previous crashed session, set ForceOption on the request body to
either OpenPreviousSaved (discard the unsaved changes) or
OpenUnsavedMostRecent (recover them).
See also
- Concepts — The Active Job
- File Handling — full set of open / save / status patterns.
Last modified on

