Template
Templates associate part and weld-location IDs with materials, stack, requirements, and algorithm settings. Set templates.filepath to enable them. get templates returns an error if none are loaded. get templates-schema returns the JSON schema. put templates validates, saves, and activates template data at the configured path.
Settings take precedence in this order: global config, part template, location template, request.
PART Object
The PART object identifies a part and its optional settings.
| Field | Type | Description |
|---|---|---|
id | String | Non-empty unique part identifier. |
materials | Acquire Materials, optional | Material settings. |
stack | Acquire Stack, optional | Plate thicknesses. |
requirements | Requirement Info, optional | Quality criteria. |
algorithm | Algorithm Settings, optional | Algorithm settings. |
LOCATION Object
The LOCATION object identifies a weld location and its optional settings. part-id can link it to a part.
| Field | Type | Description |
|---|---|---|
id | String | Non-empty location identifier, unique within its part. |
part-id | String, optional | Reference to a part in parts. |
materials | Acquire Materials, optional | Material settings. |
stack | Acquire Stack, optional | Plate thicknesses. |
requirements | Requirement Info, optional | Quality criteria. |
algorithm | Algorithm Settings, optional | Algorithm settings. |
CONFIG Object
The CONFIG object stores template-related application settings.
| Field | Type | Description |
|---|---|---|
filepath | File path string, optional | Path to the JSON template file. |
INFO Object
The INFO object describes the contents of a template exchange packet.
| Field | Type | Description |
|---|---|---|
name | String, optional | Template name. |
version | String, optional | Template version. |
timestamp | Date-time string, optional | Template timestamp. |
parts | Array of PART | Part presets. This field is required. |
locations | Array of LOCATION | Location presets. This field is required and must contain at least one location. |