Skip to content

Host.GetProjectVariables

Read the project variables as HydroSym currently has them.

When is this called?

Returns ERROR with code NO_PROJECT_OPEN when no matching schematic is open. If projectPath is omitted, uses the active schematic. UI "Project Properties" maps to the variables field.

C# Usage

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

Request

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

Response

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

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