Skip to content

Host.SetProjectVariables

Push variables into HydroSym's current project attribute list (title block).

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 schematic modified when a value changed, but does not save the file. The variables are shown as "Project Properties" in the HydroSym UI.

C# Usage

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

Request

Field Type Required Description
projectPath string Project path. If omitted, uses the currently open project.
variables map ✅ Key-value pairs to set.

Response

This method returns no data on success.

JSON

The SDK serializes these JSON bodies for you.

{
  "projectPath": "C:\\Projects\\valve-assembly.hdf",
  "variables": {"CustomerName": "Example Corp", "Revision": "C"}
}
{}

JSON Schemas: Request · Response