Skip to content

SetProjectVariables

Push project metadata to the external system.

When is this called?

Called after a schematic file close is confirmed, only when setProjectVariables is advertised and after the native save/close prompt succeeds. Host sends the schematic AttributeList (tag/value pairs); projectId is empty. Errors are warn-logged; the file still closes.

Capability: setProjectVariables

C# Override

public override void SetProjectVariables(SetProjectVariablesRequest request)
{
    // Use request.ProjectPath. HydroSym also sends title-block fields in request.Variables.
}

Request

Field Type Required Description
projectPath string ✅ Full path to the project file.
projectId string Project identifier, if known.
variables map ✅ Current schematic AttributeList entries (tag/value pairs) sent by the host on close.

Response

This method returns no data on success.

JSON

The SDK serializes these JSON bodies for you.

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

JSON Schemas: Request · Response