Transfer results to the machine and productionAssist

Prev Next

For: Integrators · Partners

This page describes steps 4 and 5 of the cutting optimization workflow: evaluate solutions and export the result or send it to the machine. An optimization in the Optimized state is required; see Trigger an optimization.

using HomagConnect.IntelliDivide.Client;
using HomagConnect.IntelliDivide.Contracts.Result;

var intelliDivide = new IntelliDivideClient(subscriptionId, authorizationKey);

4. Evaluate solutions

A completed optimization can return multiple solutions, each optimized for a different objective, for example LowestTotalCosts or FastestProduction. Select a solution that matches the order's purpose (a cost-focused quote or throughput-focused production) instead of always selecting the first one. Each entry follows the Solution contract. SolutionDetails provides the parts, material, and metrics for a solution.

// Get the solution overview
var solutions = (await intelliDivide.GetSolutions(optimization.Id))!.ToList();

// Select a solution by business objective, or use the recommended (first) solution
var selected = solutions.FirstOrDefault(s => s.Characteristic == SolutionCharacteristic.LowestTotalCosts)
               ?? solutions.First();

// Get metrics for the selected solution
var details = await intelliDivide.GetSolutionDetails(optimization.Id, selected.Id);
# Get the solution overview
GET /api/intelliDivide/optimizations/a1b2c3d4-e5f6-7890-abcd-ef1234567890/solutions

200 OK
Content-Type: application/json

[
  {
    "id": "7a5fd0bb-c8e8-4746-8ae6-8a8880324c40",
    "name": "Balanced Solution",
    "characteristic": "BalancedSolution",
    "optimizationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "overview": {
      "figures": {
        "material":   { "waste": 10.5, "wholeBoards": 26 },
        "production": { "productionTime": "01:50:29", "quantityOfParts": 134 },
        "costs":      { "materialCosts": 1222.55 }
      }
    },
    "exports": ["Saw", "Pdf", "ZIP"]
  }
]

# Get details for the selected solution
GET /api/intelliDivide/optimizations/a1b2c3d4-e5f6-7890-abcd-ef1234567890/solutions/7a5fd0bb-c8e8-4746-8ae6-8a8880324c40

200 OK
Content-Type: application/json

{
  "id": "7a5fd0bb-c8e8-4746-8ae6-8a8880324c40",
  "name": "Balanced Solution",
  "characteristic": "BalancedSolution",
  "overview": { "figures": { "…": "…" } },
  "exports": ["Saw", "Pdf", "ZIP"]
}

Which solution for which purpose?

Purpose Suitable characteristic (characteristic) Metric to compare
Quote, web shop price LowestTotalCosts, LowestMaterialCosts costs.materialCosts
Production with tight deadlines FastestProduction, LowestNumberOfCycles production.productionTime
Material efficiency MinimumWaste, MinimumWastePlusOffcuts, LowestWholeBoardsQuantity material.waste, material.wholeBoards
Minimize offcuts LowestOffcutsTotalQuantity Number of offcuts
Balanced BalancedSolution All metrics

The parameter set determines which characteristics are returned. See SolutionCharacteristic for the full list.

For calculations and analysis, GetSolutionProducedParts (produced parts) and GetSolutionPatterns (cutting patterns) are also available.

5. Export or send to the machine

After selecting a solution, export it in a machine-readable format or send it directly to the connected machine or productionAssist. The available formats are described by SolutionExportType.

// Option A: Download a saw file to a directory
var targetDirectory = new DirectoryInfo(@"C:\Export\Saege");
await intelliDivide.DownloadSolutionExport(selected, SolutionExportType.Saw, targetDirectory);

// Option B: Send the solution directly to the machine
await intelliDivide.SendSolution(optimization.Id, selected.Id);
# Option A: Download the saw file
GET /api/intelliDivide/optimizations/a1b2c3d4-e5f6-7890-abcd-ef1234567890/solutions/7a5fd0bb-c8e8-4746-8ae6-8a8880324c40/exports/Saw

200 OK
Content-Type: application/octet-stream
Content-Disposition: attachment; filename="solution.saw"

# Option B: Send the solution directly to the machine
POST /api/intelliDivide/optimizations/a1b2c3d4-e5f6-7890-abcd-ef1234567890/solutions/7a5fd0bb-c8e8-4746-8ae6-8a8880324c40/send

200 OK
Export format Content Typical use
Saw Saw file Transfer to the panel saw
Ptx Exchange format Third-party systems, archive
Pdf Cutting plans, lists Printouts in the workshop
MaterialDemand Material requirements Report back to the ERP system (Material requirements and reservation)
PartList Part list Further processing, labels
ZIP All files bundled Archive

The available formats for a solution are listed in exports or returned by GetSolutionAvailableExports(optimizationId, solutionId).

After sending, the optimization changes to Transferring and then Transferred. Track progress at the saw in productionAssist (GET /api/productionAssist/cutting/jobs).

Why this sequence matters

If you skip step 4 and always use the first solution, you may consistently make poor decisions when costs and throughput time are in tension. Also, send the solution only after the ERP system knows about it: you can reserve the material requirement from MaterialDemand in advance.

Endpoints

Step Method Endpoint SDK
4 GET /api/intelliDivide/optimizations/{optimizationId}/solutions GetSolutions(id)
4 GET …/solutions/{solutionId} GetSolutionDetails(id, solutionId)
4 GET …/solutions/{solutionId}/parts GetSolutionProducedParts(id, solutionId)
5 GET …/solutions/{solutionId}/exports/{exportType} DownloadSolutionExport(…)
5 POST …/solutions/{solutionId}/send SendSolution(id, solutionId)
5 GET /api/productionAssist/cutting/jobs –

Complete signatures: Endpoints.