Skip to content

GetProjectVariables

Retrieve project metadata from the external system.

When is this called?

Called when a schematic is opened in the GUI and before command-line PDF export, only when getProjectVariables is advertised. Returned keys are applied to the schematic attribute list (title block) in memory; the file on disk is not rewritten.

Capability: getProjectVariables

C# Override

public override GetProjectVariablesResponse? GetProjectVariables(
    GetProjectVariablesRequest request)
{
    return new GetProjectVariablesResponse
    {
        Variables = new Dictionary<string, string>
        {
            ["CustomerName"] = "Example Corp",
        }
    };
}

Request

Field Type Required Description
projectPath string ✅ Full path to the project file.
projectId string Project identifier, if known.

Response

Field Type Required Description
variables map ✅ Key-value pairs of project variables.

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