GetDieCutModels
- 1 minute to read
You can get parameters of die-cut models using the ~/api/Origami/GetDieCutModels endpoint, in the same way as GetDieCutModel but this endpoint allows you to retrieve parameters of a number of models at once.
Request type
[GET
]
URL
~/api/Origami/GetDieCutModels?ids[]=<modelId>
Required URL Param
ids
- an array of die-cut model names.
Example call
var modelIds = ["ECMA A20.20.03.01 ReversedTuckEnd", "FEFCO 0215"];
$.ajax({
type: "GET",
url: appUrl + "api/Origami/GetDieCutModels",
data: {
ids: modelIds
},
dataType: 'json',
contentType: "application/json; charset=utf-8",
success: function (data, textStatus, jqXHR) {
console.log("Die cut models: " + JSON.stringify(data));
}
});
Success response
Status Code: 200 OK
Content:
[
{
"id":"ECMA A20.20.03.01 ReversedTuckEnd",
"model":{
"name":"ECMA A20.20.03.01 Reversed Tuck End",
"description":"",
"params":{
"L":{
"type":"float",
"rules":{
"min":30,
"max":300
}
},
"W":{
"type":"float",
"rules":{
"min":20,
"max":200,
"lessOrEqual":"L"
}
},
"H":{
"type":"float",
"rules":{
"min":20,
"max":300
}
},
"thickness":{
"type":"float",
"default":0.5,
"rules":{
"min":0.1,
"max":10
}
},
"material":{
"type":"material",
"default":"folding"
}
},
"predefinedParams":{
"name":"DIMENSIONS_LWH",
"params":[
{
"L":40,
"W":20,
"H":20
},
{
"L":150,
"W":30,
"H":80
},
{
"L": 100,
"W": 50,
"H": 150
}
]
}
}
},
{
"id":"FEFCO 0215",
"model":{
"name":"FEFCO 0215",
"description":"",
"params":{
"L":{
"type":"float",
"rules":{
"min":50,
"max":400
}
},
"W":{
"type":"float",
"rules":{
"min":50,
"max":400,
"lessOrEqual":"L"
}
},
"H":{
"type":"float",
"rules":{
"min":30,
"max":400
}
},
"material":{
"type":"material",
"default":"corrugated"
},
"thickness":{
"type":"float",
"default":3,
"rules":{
"min":0.1,
"max":10
}
},
"flute":{
"type":"flute",
"default":"B"
}
},
"predefinedParams":{
"name":"DIMENSIONS_LWH",
"params":[
{
"L":150,
"W":100,
"H":80
},
{
"L":200,
"W":100,
"H":150
},
{
"L":300,
"W":200,
"H":190
}
]
}
}
}
]