Skip to content

Host.NewProject

Create a new schematic the same way File > New does, then save it to filePath with no Save As dialog.

When is this called?

Requires the HydroSym GUI. Fails with FILE_EXISTS if the destination already exists. Does not open an existing file and does not convert an already-open untitled child. filePath must have a .hdf extension.

C# Usage

var result = Host.NewProject(@"C:\Temp\new-project.hdf");

Request

Field Type Required Description
filePath string ✅ Full destination path for the new .hdf schematic. Parent folders are created if needed.

Response

Field Type Required Description
projectPath string ✅ Path the new schematic was saved to.
projectName string File name of the new 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