Skip to main content

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.

FieldTypeDescription
idStringNon-empty unique part identifier.
materialsAcquire Materials, optionalMaterial settings.
stackAcquire Stack, optionalPlate thicknesses.
requirementsRequirement Info, optionalQuality criteria.
algorithmAlgorithm Settings, optionalAlgorithm settings.

LOCATION Object​

The LOCATION object identifies a weld location and its optional settings. part-id can link it to a part.

FieldTypeDescription
idStringNon-empty location identifier, unique within its part.
part-idString, optionalReference to a part in parts.
materialsAcquire Materials, optionalMaterial settings.
stackAcquire Stack, optionalPlate thicknesses.
requirementsRequirement Info, optionalQuality criteria.
algorithmAlgorithm Settings, optionalAlgorithm settings.

CONFIG Object​

The CONFIG object stores template-related application settings.

FieldTypeDescription
filepathFile path string, optionalPath to the JSON template file.

INFO Object​

The INFO object describes the contents of a template exchange packet.

FieldTypeDescription
nameString, optionalTemplate name.
versionString, optionalTemplate version.
timestampDate-time string, optionalTemplate timestamp.
partsArray of PARTPart presets. This field is required.
locationsArray of LOCATIONLocation presets. This field is required and must contain at least one location.