@dc42 thank you for the response. I understand the gcode command I think. It's measuring rise over run per mm. You type in the length and offset value and it reduces it to a 1mm value. My question is more of a geometry problem. Say solidworks says side a and b are 100mm and side c should be 141.421mm, but I'm measuring 143mm because side a and b are not perpendicular. I'm using solidworks to draw directly on the object because is been 20yrs since geometry and trig and I can't quite be confidant/remember my math.
If some one knows a simple formula to get the offset from just measuring the diagonal of a triangle given two sides of equal length, that would work.
What I'm attempting to do is anchor the bottom leg of the triangle horizontal and letting the top leg of the swing freely. Then define the "hypotenuse" which in this case makes the triangle a little obtuse. Then measure from the, from my example above, 100mm correct leg horizontally to the "measured side b".
Is this method sound? I can't be sure I'm correct in my approach. I believe you should be able to measure skew just by measuring just the hypotenuse of a triangle knowing what legs a and b are.