Skip to content

Host.SetProjectVariables

Push variables into HydroMan's current manifold Project Variables (UserVarList).

When is this called?

Adds or replaces each key; existing keys not in the map are kept. An empty map is a no-op. Marks the manifold modified when a value changed, but does not save the file. Does not update variables already placed in production drawing layouts. Names and values must not contain "||", which HydroMan uses as an internal delimiter; no escaping is applied.

C# Usage

Host.SetProjectVariables(new HostSetProjectVariablesRequest { /* ... */ });

Request

Field Type Required Description
projectPath string Project path. If omitted, uses the currently open manifold.
variables map ✅ Key-value pairs to set (merged into UserVarList).

Response

This method returns no data on success.

JSON

The SDK serializes these JSON bodies for you.

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

JSON Schemas: Request · Response