Ok, Will try to be a bit clearer but knowing me I will make things worse
Ok the 2 lines are on the YZ plane ignore the origin on the drawing as it was just a sketch to try and better explain.

Here is the part I am measuring (now in metric)
It has some sizes on it but do not take them as gospel that is what i am trying to check with the machine.
What I mean by expressed in IJK in a sin format is this
a line at 0 degree's (3oclock) is expressed as I1 J0 K0
a line at 90 degree' (12 oclock) is expressed as I0 J1 K0
a line at 45 degree's (1:30) is expressed as I0.707107 J0.707107 K0
a line at -30 degree's on the XY and 45 degree's downward is expressed as I0.857167 J-0.5 K-0.707107
basically the sin values of the angle you are travelling in.
Drawing tangent lines is easy stuff my big problem is I cannot "draw" in anything If I have to create something perpedicular to a line it would have to be done mathematically by using information taken from other lines.
line 1 is defined as such
LN[#].Modifier
--------X, Y, Z----------------------------Location
--------A, B, C----------------------------Direction (a,b,g) (angles in degrees to X, Y & Z axis)
--------I, J, K-----------------------------Direction (cosine format)
--------RCylXY, RCylYZ, RCylZX-------Cylindrical co-ordinate system,radius
--------RSph------------------------------Spherical co-ordinate system, radius
--------ThetaX, ThetaY, ThetaZ---------Spherical co-ordianate system, angle j
--------PhiXY, PhiYZ, PhiZX ------------???
--------L ----------------------------------Length
--------Di ---------------------------------Distance from origin (plane & Line)
--------Rng--------------------------------Range (form of element)
--------SigSigmaMaxNo------------------???
i.e. line 1's X origin would be LN[1].X
to offest line I would have to write a seperate formula for each lines opposite and adjacent face as the hypotonuse would be half the dia of the circle then add these to the values of the original lines to create new lines.
I would then be able to find where these 2 new lines intersect (another formula) then add half the radius this would give me a point on the circle in the Y direction this I can add to the one at the opposite side thus giving me the direction across a set of rollers.
so to get it worked out I would need 21 formulas for each size
there are 22 on each part so that's 462 different formula's, that's ok once written the machine will do it in about 3 seconds but my brain will fry writting it all.
hope thats cleared it all up
