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.