Skip to content

Host.GetProjectVariables

Read the project variables as HydroMan currently has them.

When is this called?

Returns ERROR with code NO_PROJECT_OPEN when no matching manifold is open. If projectPath is omitted, uses the active manifold. The variables are the name/value pairs shown as "Project Variables" in the HydroMan UI (UserVarList). Names and values must not contain "||", which HydroMan uses as an internal delimiter; no escaping is applied.

C# Usage

var result = Host.GetProjectVariables();  // optional projectPath argument

Request

Field Type Required Description
projectPath string Project path. If omitted, uses the currently open manifold.

Response

Field Type Required Description
variables map ✅ Current project variable values (UserVarList).

JSON

The SDK serializes these JSON bodies for you.

{
  "projectPath": "C:\\Projects\\block.mnf"
}
{
  "variables": {"CustomerName": "Example Corp"}
}

JSON Schemas: Request · Response