CabCodeXF — CabCode eXchange Format

An open, machine-neutral interchange format for panel furniture: board, per-edge edging, drilling/routing and assembly placement. CabCodeXF carries machining intent — a CAD system emits it; a factory imports it and generates the machine CAM.

Version 0.5.3 · pre-releasexmlns: https://cabcode.uk/cabcodexfOpen spec · free to implement

Downloads

Sample catalogue →
Example files for every part of the format — cabinets, shaker and V-groove doors, angled and shaped parts, routing — to download or view in 3D

Why CabCodeXF

No open, vendor-neutral format describes panel/cabinet machining intent the way BTLx does for timber. Machine formats like WoodWOP .mpr or Biesse .cix are post-processor output; DXF is geometry without machining semantics. CabCodeXF fills that gap: a CAD vendor emits intent, and the consuming factory owns the CAM step — so writing a CabCodeXF post-processor is cheap.

Conventions

  • Units millimetres; angles in degrees (declared in <Header>).
  • Part datum origin at the corner of reference face A; X along length, Y along width, Z normal to A pointing into the part (a right-handed frame).
  • Length / width are the X and Y of the part's drilling file, which are the cutting list's Length (the grain direction, not necessarily the longer side) and Width: a cabinet side 720 high × 570 deep is length="720" width="570", a cross-grain door 595 wide × 715 high is length="595" width="715". An op's x runs 0..length.
  • Sizes are always finished sizes, edge bands included: a 720 × 300 gable banded with 2mm ABS is still length="720" width="300", and every position is measured on the finished part. The board's cut size (less the bands, plus any pre-mill) is worked out by the factory from <Edging>; a file never carries it.
  • Faces A/B: face A (z = 0) is the show face; face B (z = thickness) is the back, the face usually machined, since parts are machined face down: hinges, shelf holes and connectors go on B, and face-A work (a handle bored from the front) needs the part turned over. Edges are named by the coordinate they sit on: X0, Xmax, Y0, Ymax; the familiar L1/L2 are the two edges along the length (Y0/Ymax), W1/W2 the ends (X0/Xmax).
  • Turning sense clockwise / counter-clockwise and a route's left / right are in the part's own x/y coordinates, drawn with x to the right and y up.
  • Depth is a positive magnitude into the named face; through="true" overrides it.
  • Grain is stated explicitly on each part, never inferred.
  • Assembly is optional and additive — a pure cut-list omits it and still validates.

Elements

<Header>units (mm), producer, timestamp; optionally each <Originator> (the systems that contributed work) and the <Order> with its job number
<Materials>board definitions, referenced by id (neutral manufacturer/decor/finish/thickness)
<EdgeMaterials>edge-band definitions, referenced by id
<Part>one panel: length/width/thickness, grain, material, and optionally its role (side, door, drawer-face, plinth…) so a factory can sort parts by machine, from version 0.5.3 its hand (left or right as you face the front: a side's side of the cabinet, a door's hinge side), and its origin when another system added it; holds edging + operations
<Edging>per-edge banding (edges X0/Xmax/Y0/Ymax, with the familiar L1/L2/W1/W2 label)
<Outline>optional: the part's finished footprint when it is not a rectangle; a diagonal side is an angle cut, and from version 0.2 a side can be an <Arc>
<Cutout>version 0.2: a hole wholly inside the outline, cut right through (lines and arcs, wound clockwise)
<Bevel>optional: an edge cut at an angle through the thickness, and which face keeps its full size
<Finish>optional: a coat applied after cutting, one element per coat: primer, lacquer, paint… on face A, B or both, edges, sheen, colour
<Front> / <Supply>optional: a shaker or boarded door or drawer front (routed or five-piece, frame sizes, profile — square, ovolo, chamfer or V-groove — and a boarded panel), its pieces (partOf), and bought-in parts — who supplies them and who drills them
<Bore>drilling — face bore (A/B) or edge bore; optional repeat <Pattern>
<Route>routing — a path of <Line> and <Arc> segments; toolSide left/right puts the cutter beside the finished edge, centre cuts a groove; from version 0.5 profile="v" with an angle is a V-groove, and a <Pattern> repeats the whole route; from version 0.5.2 purpose="decorative" marks a groove that is only seen, and follows="outline" with an inset says it is the part's outline moved in (a shaker frame line, or a groove following an angled door's slope) — the path is still written in full
<Pocket>pocketing — a rectangular recess by its centre, size, corner radius and angle
name / noteoptional on every operation — a short label and a note for the operator; never changes what is machined
originoptional on parts and operations — which originator added it; left out, it is inherited from the part or design
<Hardware>optional: the fittings the parts are machined for (hinges, legs, handles, plates); an operation names its fitting with hardware="H1"; from version 0.5.1 a fitting bought by length (a hanging rail) lists the pieces it is cut into as <Cut length quantity>
<Assembly>optional: places each part instance (position + orientation) for viewing
<Designs>optional: whole parametric cabinets (e.g. CabCode C101 + height, width, depth, boards and settings, a JSON setting written as the <Param>'s text) so the designing system can reopen and resize them; each can carry its originator and a uid that traces it back to the job it came from; a file may carry designs only

Worked example

One part (a cabinet gable) with board, edging, the three operation primitives, and an assembly instance:

<?xml version="1.0" encoding="UTF-8"?>
<CabCodeXF xmlns="https://cabcode.uk/cabcodexf" version="0.1">
  <Header units="mm" angleUnit="deg" producer="AcmeCAD / CabCodeXF post-processor 1.0">
    <Originator id="acmecad" name="AcmeCAD"/>    <!-- who made it -->
    <Order ref="Smith kitchen" job="4821" originator="acmecad"/>
  </Header>

  <Materials>
    <Material id="M2" token="U960" manufacturer="Egger" decor="U960"
              finish="ST9" type="MFC" thickness="18"/>
  </Materials>
  <EdgeMaterials>
    <EdgeMaterial id="E1" kind="ABS" thickness="2.0"/>
  </EdgeMaterials>

  <Part id="P1" name="Gable" role="side" quantity="2"
        length="720" width="300" thickness="18" grain="length" material="M2">
    <Edging>
      <Edge edge="Y0" as="L1" edgeMaterial="E1"/>
    </Edging>
    <Operations>
      <Bore face="A" diameter="5" depth="12">        <!-- shelf line-boring -->
        <At x="100" y="37"/>
        <Pattern count="5" dx="32" dy="0"/>
      </Bore>
      <Bore face="Xmax" diameter="8" depth="30" z="9"> <!-- edge dowels -->
        <At u="60"/><At u="240"/>
      </Bore>
      <Route face="B" toolWidth="4" depth="10">        <!-- back groove -->
        <Line x1="8" y1="285" x2="712" y2="285"/>
      </Route>
    </Operations>
  </Part>

  <Assembly id="CAB-1" name="600 Base Unit" units="mm">
    <Instance part="P1" id="GABLE-L">
      <Position x="0" y="0" z="0"/>
      <Orientation localX="+Z" localY="+Y" localZ="+X"/>
    </Instance>
    <!-- …further instances… -->
  </Assembly>
</CabCodeXF>

Validation

Every CabCodeXF document validates against the XSD schema at /cabcodexf/cabcodexf-0.5.3.xsd (target namespace https://cabcode.uk/cabcodexf). Validate locally with xmllint:

xmllint --noout --schema cabcodexf-0.5.3.xsd your-cabinet.cabcodexf

A producer's post-processor is considered CabCodeXF-conformant when its output validates against this schema and the sample files above round-trip through a reference consumer.

Ownership & licensing

CabCodeXF is stewarded by CabCode and published as an open spec, free to produce and consume. The format and schema may be implemented by any CAD or machine vendor without fee. Questions, conformance and implementation support: drilling@cabcode.uk.

drilling@cabcode.uk

Telephone : 0203 889 9227
Text : 07441 359001

Contact Us
About Us