Every dieline_template supports a number of dieline_template_variables allowing customisation.
| type string | "dieline_template_variable" | |||||||||
| name string |
Name of the variable "a" , "b" , "c" , "dust_flap" |
|||||||||
| data_type string |
Data type "length" : They represent a lenght with a unit. "integer" : They represent an integer. "angle" : They represent an angle betwen "0" and "360" "boolean" : They represent a boolean, "true" or "false" "alignment" : They represent an alignment. . There are 9 possible values each represented by an integer value.
|
|||||||||
| required boolean | Set to true if variable is required to create a dieline. | |||||||||
| default_value {value:, unit:} |
Default value for the variable. For example: length => { "value": 5.23, "unit": "mm" } integer => { "value": 4 } boolean => { "value": true } angle => { "value": 45 } |
|||||||||
| image object |
Image for the dieline template variable.
For example:
{
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/api/drawing_option_svg_example.svg"
}
|
|||||||||
| allowed_values object |
Array of allowed values.
For example:
[
true,
false,
0,
1
]
|
|||||||||
| children [dieline_template_variable] |
"dieline_template_variables" can have children. This parent/child relationship between variables help grouping related variables together. For example:
{
"type": "dieline_template_variable",
"name": "overflow",
"description": "overflow",
"data_type": "boolean",
"required": false,
"default_value": {
"value": false
},
"children": [
{
"type": "dieline_template_variable",
"name": "overflow_margin",
"description": "",
"data_type": "length",
"required": false,
"default_value": {
"value": "3",
"unit": "mm"
},
"children": [ ]
}
]
}
|