Skip to content

Host.SaveProjectAs

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

When is this called?

Requires an open manifold. 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 .mnf 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 .mnf manifold.

Response

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

JSON

The SDK serializes these JSON bodies for you.

{
  "filePath": "C:\\Projects\\block.mnf"
}
{
  "projectPath": "C:\\Projects\\block.mnf",
  "projectName": "Valve Assembly Block A"
}

JSON Schemas: Request · Response