Hello Fergy,
Which information do you have on input?
Coordinates of the origina point (X0, Y0, Z0), pairs of markers defining axes direction or marker triplets defining XY, XZ, YZ planes? How the scale is defined - do you have scale bars in the project?