Skip to content

API Guide

However you are interacting with the API there are some universal ways of doing things which are defined below.

Coordinate system

Throughout the process we need to be able to refer to sides and directions, while catering for part rotation.

For our x and y coordinate system, y increases as you move up.

The side labels are used throughout. L indicates stock length if used as a direction or the longer side. W indicates stock width (shorter side) if used as a direction or the shorter side.

Stock

  • Stock is always arranges with the long sides horizontally. Stock never rotates.
  • Longer sides are labelled L1 and L2.
  • Shorter sides are known as the width and labelled W1 and W2.
  • Adding trim to stock.trim.l1 will trim moving in from the bottom side, reducing the width of the stock.

Coordinate system stock

Stock

  • Parts can rotate, but as the L1,L2,W1,W2 sides refer to the longer and shorter sides these values do not change with rotation.

Coordinate system parts