Skip to content

Host.SaveProjectAs

Save the currently open schematic to filePath with no Save As dialog (in-memory content, including unsaved edits).

When is this called?

Requires an open schematic. In command-line mode it saves the bound document. Does not show a Save As dialog. Writes the active project's current in-memory state to filePath and retargets the open child to that path. The previous on-disk file is left unchanged. Fails with FILE_EXISTS if the destination already exists, READ_ONLY if the project is open read-only, or NO_PROJECT_OPEN when nothing is open. filePath must have a .hdf extension. Parent folders are created if needed.

C# Usage

var result = Host.SaveProjectAs(new HostSaveProjectAsRequest { /* ... */ });

Request

Field Type Required Description
filePath string ✅ Full destination path for the saved .hdf schematic.

Response

Field Type Required Description
projectPath string ✅ Path the schematic was saved to.
projectName string File name of the saved schematic.

JSON

The SDK serializes these JSON bodies for you.

{
  "filePath": "C:\\Projects\\valve-assembly.hdf"
}
{
  "projectPath": "C:\\Projects\\valve-assembly.hdf",
  "projectName": "Valve Assembly Block A"
}

JSON Schemas: Request · Response