The lines are drawn and then certain constraints must be applied: These points must be coincident, these lines must be parallel, these must be perpendicular and several others. Dimensional constraints are then applied. The program informs the designer when the drawing is "fully constrained" meaning that the parametric solver can only find a single solution for the given set of constraints.
For example to center a hole inside a brick: Guide lines are drawn to be along the center. At there intersection a point is constrained. The hole is then extruded (or made using the hole tool) at this point.
This allows for making programmable drawings. For example one drawing can generate several pieces of documentation for different parts, but with different dimensions, thread types and so on.
In the extreme end of this we have OpenSCAD[1] in which models are defined purely by code.
Could you list the name of the various CAD packages you used? (For the PCB layout and modelling the box)?
For the PCB, I tried using Eagle (very tedious / confusing) and KiCAD (couldn't figure out how to install on OS X without compiling from source) and ended up using Altium Designer via a friend's dad, who is an electrical engineer. Unlike Inventor / SolidWorks, Altium was very tedious and confusing and I was stuck until I bought an excellent video course on the topic: http://www.fedevel.com/academy/
I'll post some photos of the current version and more details on my twitter (@lynaghk) tomorrow (in 10 hours).
Software is all on an 8-bit Atmel microcontroller, written in C in the style of Harel Statecharts (http://www.inf.ed.ac.uk/teaching/courses/seoc/2005_2006/reso...).