Skip to content

BriefElementComputed

BriefElementComputed contains computed data for individual brief elements including dimensions, CAD integration, production details, decoration summary, and finishing data. This entity stores the calculated values based on the BriefElement specifications and is used for manufacturing process planning.

  • Store computed dimensions (flat pack surface, CAD measurements)
  • Integrate with CAD systems for design files
  • Summarize decoration and printing requirements
  • Calculate finishing specifications
  • Provide production data (quantities, outsourcing, overhead)
  • Support manufacturing process calculations
PropertyTypeDescription
idUUIDUnique identifier
positionnumberElement position (0-indexed) - Matches the BriefElement position
product_idUUIDProduct reference
briefComputedIdUUIDParent BriefComputed ID

Important: The position property matches the corresponding BriefElement position. Use this to link BriefElement with its computed data: briefComputed.briefElements[position] corresponds to brief.briefElements[position].

PropertyTypeDescription
flat_pack_surface_heightnumberPrinted material height (mm)
flat_pack_surface_widthnumberPrinted material width + glued flap (mm)
cad_one_up_heightnumberCAD computed one-up height (mm)
cad_one_up_widthnumberCAD computed one-up width (mm)
total_rule_lengthnumberDigital cutting rule length (mm)
knock_down_widthnumberFlat-packed width (mm)
knock_down_lengthnumberFlat-packed length (mm)
PropertyTypeDescription
cad_design_layer_keystringImpact one-up ID or S2 design ID
cad_project_keystringImpact project ID
cad_one_up_enabledbooleanOne-up CAD available
cad_layout_enabledbooleanLayout CAD available
cad_standard_payloadanyCAD system payload
PropertyTypeDescription
references_countnumberNumber of decoration variants (1-12)
recto_color_countnumberRecto total colors
recto_ink_percentagenumberRecto ink coverage %
verso_color_countnumberVerso total colors
verso_ink_percentagenumberVerso ink coverage %
PropertyTypeDescription
quantitynumberTotal production quantity
quantity_per_decorationDecorationCount[]Quantities per variant
outsourcing_amountnumberOutsourced work amount (€)
overhead_toolingnumberTooling overhead %
overhead_productionnumberProduction overhead %
overhead_deliverynumberDelivery overhead %
RelationshipEntityTypeDescription
briefComputedBriefComputedMany-to-OneParent BriefComputed

DieCut:

{
machineId: string; // Machine UUID
layoutType: string; // Layout configuration
upsPerSheet: number; // Units per sheet
sheetsRequired: number; // Total sheets needed
}

BasicVarnish:

{
code: string; // Varnish code
value: number; // Application value/coverage
}
  1. Material Calculation: Use computed dimensions to calculate material requirements
  2. CAD File Integration: Access CAD keys for design file retrieval
  3. Production Planning: Use quantity and overhead data for scheduling
  4. Cost Calculation: Apply overhead percentages to production costs
  5. Manufacturing Process: Reference decoration and finishing data for process setup
const surfaceArea = elementComputed.flat_pack_surface_height
* elementComputed.flat_pack_surface_width
/ 1000000; // mm² to m²
const sheets = totalQuantity / blanksPerSheet;
const materialWeight = surfaceArea * grammage * sheets;

Linking BriefElement with BriefElementComputed

Section titled “Linking BriefElement with BriefElementComputed”

The position property is the key to linking a BriefElement with its corresponding BriefElementComputed:

// Example: Linking BriefElement with BriefElementComputed
const brief = await GET('/briefs/:id/details');
// Access a BriefElement
const element = brief.briefElements[0]; // BriefElement at position 0
console.log(element.position); // 0
// Access the corresponding BriefElementComputed using the same position
const computed = brief.briefComputed.briefElements[element.position];
// OR directly:
const computed = brief.briefComputed.briefElements[0];
// Now you have both:
// - element: Contains the client request (dimensions, materials, decoration)
// - computed: Contains the computed results (CAD data, formulas, calculated dimensions)
Brief
├── briefElements[]
│ ├── [0] - BriefElement (position: 0)
│ ├── [1] - BriefElement (position: 1)
│ └── [2] - BriefElement (position: 2)
└── briefComputed
└── briefElements[]
├── [0] - BriefElementComputed (position: 0) ← Matches BriefElement[0]
├── [1] - BriefElementComputed (position: 1) ← Matches BriefElement[1]
└── [2] - BriefElementComputed (position: 2) ← Matches BriefElement[2]

BriefElementComputed data is nested within BriefComputed:

Terminal window
GET /briefs/:id/details

Returns brief with briefComputed.briefElements array containing BriefElementComputed objects.