Using the offsets of 4 and 8, a trig calculation is done to determine the correct angle to rotate the alignment. PCDMIS calculates in radians, so that has to be converted to degrees (unless you are programming angles in radians, I suppose).
I use this as well, but with variables calculated before the alignment, and then placing the variable in the alignment rotation. It works well -
Using the offsets of 4 and 8, a trig calculation is done to determine the correct angle to rotate the alignment. PCDMIS calculates in radians, so that has to be converted to degrees (unless you are programming angles in radians, I suppose).
I use this as well, but with variables calculated before the alignment, and then placing the variable in the alignment rotation. It works well -