Represents an optimization request built using the object model. Combines a named set of Parts with the machine, parameters, boards, and action inherited from OptimizationRequestBase.
Inherits from: OptimizationRequestBase
Example
{
"name": "Order_20260120",
"machine": "productionAssist Cutting",
"parameters": "Default",
"action": "Optimize",
"unitSystem": "Metric",
"boards": [ // optional, materialManager data is used if not provided
{
"materialCode": "P2_White_19.0",
"boardCode": "P2_White_19.0_2800_2070",
"length": 2800,
"width": 2070,
"thickness": 19.0,
"grain": "None",
"quantity": 20,
"costs": 10.5
}
],
"parts": [
{
"description": "Left Side",
"materialCode": "P2_White_19.0",
"length": 600,
"width": 300,
"thickness": 19.0,
"quantity": 5,
"grain": "None"
},
{
"description": "Right Side",
"materialCode": "P2_White_19.0",
"length": 600,
"width": 300,
"thickness": 19.0,
"quantity": 5,
"grain": "None"
}
]
}
Properties
Required: Action, Machine, Name, Parameters
| Property | Type | Description | Details |
|---|---|---|---|
Action |
OptimizationRequestAction (required) |
Action to perform after the request is submitted. Defaults to ImportOnly, which creates the optimization without starting it. | Default: ImportOnlyExample: Optimize |
Boards |
OptimizationRequestBoard[] |
Boards available for the optimization. Optional — when no boards are provided, the required boards are retrieved automatically from materialManager. | Example: [ { "materialCode": "P2_White_19.0", "boardCode": "P2_White_19.0_2800_2070", "length": 2800, "width": 2070, "thickness": 19.0, "grain": "None", "costs": 10, "quantity": 70 } ] |
ExtensionData |
ExtensionDataObject |
||
Machine |
string (required) |
Name of the target machine. Maximum length is 100 characters. | Length 3 to 100 Example: productionAssist Cutting |
Name |
string (required) |
The name to assign to the optimization. Use 3 to 100 characters and do not include \, /, :, *, ?, ", <, >, or /. If omitted, a name is generated automatically. | Length 3 to 100 Example: Order_20250120 |
Parameters |
string (required) |
Name of the parameter set to use. Maximum length is 100 characters. | Length 3 to 100 Example: Default |
Parts |
OptimizationRequestPart[] |
Parts to include in the optimization. At least one part is required, and at least one part must have a Quantity greater than 0. | Min length 1 Example: [ { "description": "Part A", "materialCode": "P2_White_19.0", "length": 600, "width": 300, "quantity": 10 } ] |
Usage in the API
Input: The caller sends the type to the API. Output: The API returns the type.
| Method | Endpoint | Usage of the type |
|---|---|---|
| POST | /api/intelliDivide/optimizations/cutting |
Input |
Package: HomagGroup.HomagConnect.IntelliDivide.Contracts 2.2.5-preview.98
Source: OptimizationRequest.cs
Samples: IntelliDivide samples
