Current Help System: Tutor Translator (View Core Help)

## Alignment Commands

PC-DMIS can have a large number of alignments, while TUTOR can have at most 11. The 11-element array called E.ALIGNMENTS will correspond to the PC-DMIS alignments. All alignments are initialized to the STARTUP ID that is language dependent. In this help file we refer to startup alignment using ”r;STARTUP” keyword.

The E.CUR_ALIGN variable contains the index of the current reference system.

The PUSH_REFSYS and POP_REFSYS commands use the REF_SP variable for the stack index, while the E.REFSYS_STACK defines the stack.

These variables are declared at the beginning of the program:

ASSIGN/E.REF_SP=0
ASSIGN/E.REFSYS_STACK=0
ASSIGN/E.CUR_ALIGN=0
ASSIGN/E.REF_SP=0
ASSIGN/E.ALIGNMENTS[0] = "STARTUP"
ASSIGN/E.ALIGNMENTS[1] = " STARTUP "
ASSIGN/E.ALIGNMENTS[2] = " STARTUP "
ASSIGN/E.ALIGNMENTS[3] = " STARTUP "
ASSIGN/E.ALIGNMENTS[4] = " STARTUP "
ASSIGN/E.ALIGNMENTS[5] = " STARTUP "
ASSIGN/E.ALIGNMENTS[6] = " STARTUP "
ASSIGN/E.ALIGNMENTS[7] = " STARTUP "
ASSIGN/E.ALIGNMENTS[9] = " STARTUP "
ASSIGN/E.ALIGNMENTS[10] = " STARTUP "

Tutor allows the axis name on which to work to be omitted while PC-DMIS requires it. The following function is required to analyze the cosines of the element and return the appropriate keyword.

ASSIGN/E.BIGGEST = FUNCTION((F),IF(ABS(F.I)>ABS(F.J),IF(ABS(F.K)>ABS(F.I),IF(F.K>0,E.ZPLUS,E.ZMINUS),IF(F.I>0,E.XPLUS,E.XMINUS)),IF(ABS(F.K)>ABS(F.J),IF(F.K>0,E.ZPLUS,E.ZMINUS),IF(F.J>0,E.YPLUS,E.YMINUS)))) Skew1 - Alignment Primary Axis

This section discusses the following alignment types:

Skew1 – Alignment Primary Axis

Skew2 – Alignment Secondary Axis

Iskew – Theoretical Rotation

Preset – Origin Presetting

Use of Reference Systems

Use of Reference Planes