<?xml version="1.0" encoding="UTF-8"?>
<!-- Sample: fronts that are not plain slabs. A five-piece shaker door with its pieces listed, a
     drawer front with the shaker frame routed from one board, and a bought-in door drilled by its
     supplier. The piece sizes are illustrative (an 8mm tongue into an 8mm groove on each side),
     not a joinery rule: each factory uses its own. Intent, not toolpaths. -->
<CabCodeXF xmlns="https://cabcode.uk/cabcodexf" version="0.1">
  <Header units="mm" angleUnit="deg" producer="hand-written sample" created="2026-10-19T12:00:00Z">
    <Order ref="shaker-and-bought-in"/>
  </Header>
  <Materials>
    <Material id="M1" token="MDF21" type="MDF" thickness="21" description="21mm MDF"/>
    <Material id="M2" token="MDF8" type="MDF" thickness="8" description="8mm MDF"/>
    <Material id="M3" token="MDF18" type="MDF" thickness="18" description="18mm MDF"/>
  </Materials>

  <!-- (a) Five-piece shaker door: the front is the assembled item (not cut from board); its
       hinge cups are drilled on the assembled door. -->
  <Part id="P1" name="DoorL" role="door" length="715" width="595" thickness="21" material="M1">
    <Front style="shaker" build="five-piece" stile="90" rail="90" groove="8" grooveDepth="8" panelThickness="8"/>
    <Operations>
      <Bore face="B" diameter="35" depth="13" name="hinge cup"><At x="100" y="22.5"/></Bore>
      <Bore face="B" diameter="35" depth="13" name="hinge cup"><At x="615" y="22.5"/></Bore>
    </Operations>
  </Part>
  <Part id="P1a" name="DoorL stile L" role="door-stile" partOf="P1" length="715" width="90" thickness="21" grain="length" material="M1"/>
  <Part id="P1b" name="DoorL stile R" role="door-stile" partOf="P1" length="715" width="90" thickness="21" grain="length" material="M1"/>
  <Part id="P1c" name="DoorL rail top" role="door-rail" partOf="P1" length="431" width="90" thickness="21" grain="length" material="M1"/>
  <Part id="P1d" name="DoorL rail bottom" role="door-rail" partOf="P1" length="431" width="90" thickness="21" grain="length" material="M1"/>
  <Part id="P1e" name="DoorL panel" role="door-panel" partOf="P1" length="551" width="431" thickness="8" material="M2"/>

  <!-- (b) Drawer front with the shaker frame routed into its face from one board. -->
  <Part id="P2" name="Drawer front" role="drawer-face" length="595" width="140" thickness="18" material="M3">
    <Front style="shaker" build="routed" stile="60" rail="60"/>
  </Part>

  <!-- (c) Bought-in door, drilled by its supplier: its operations record where the cups are. -->
  <Part id="P3" name="DoorR" role="door" supply="bought-in" length="715" width="595" thickness="22">
    <Front style="shaker" build="five-piece" stile="70" rail="70"/>
    <Supply supplier="Example Doors Ltd" ref="SHK-715-595" finish="primed" drilled="supplier"/>
    <Operations>
      <Bore face="B" diameter="35" depth="13" name="hinge cup"><At x="100" y="572.5"/></Bore>
      <Bore face="B" diameter="35" depth="13" name="hinge cup"><At x="615" y="572.5"/></Bore>
    </Operations>
  </Part>
</CabCodeXF>
