I'm trying to create a parametric program to cut a pocket for putting stiffeners into cabinet doors. We are using Biesse works Ver. 18.104.22.1684.
Here is a simplified version of the problem. You start with a line along x. You set lpx and lpy and the line rotates to point from corner to corner (forming the hypotenuse of a right angle triangle (red line). See attached pic.
Now obviously (i think) this is a super simple math problem. Set the center of rotation to lpx/2 and lpy/2. The angle is tan^-1*(lpx/lpy) but i can't for the life of me get it to work. "atn" doesn't give you what I want and I feel like i've tried every possible syntax imaginable.... even using variables...eg...
how do you express in the inverse of tan (or sin or cos for that matter)?
I hope someone can help before i go insane!
Figured it out.. when using arc tangent (atn)... the result is given in radians.
so the formula is: