Current Help System: Tutor Translator (View Core Help)

### Format Command

The FORMAT command is translated as one or more calls to the TUTOR_FORMAT subroutine supplied in the TutorSub.prg library.

The parameters are:

1. Output format table. Is initialized at the beginning of the part program. The definitions for each of the values that follow E.OFMT are defined below.

2. First E.OFMT value: Device for which the format will be applied:
   1=ALL
   2=DY
   3=PRN
   4=FILE1
   5=FILE2
   6=FILE3
   7=FILE4

3. Second E.OFMT value: Element type - Identifies the feature for which format will be applied:
   1=Should
   2=Circle
   3=Sphere
   4=Line
   5=Cone
   6=Cylinder
   7=Plane
   8=Curve NOT supported in the first release.
   9=Slot
   10=Set. NOT supported in the first release.
   11=Ellipse
   12=Surface . NOT supported in the first release.
   113=Paraboloid . NOT supported in the first release.
   114=Torus. NOT supported in the first release.
   115=Pick
   116=PointByRel
   117=CircleByRel
   118=LineByRel
   119=PlaneByRel

4. Third E.OFMT value: Field Identifier:
   1=X 2=Y 3=Z 4=PR 5=PA 6=CX 7=CY 8=CZ
   9=DM 10=DM2 11=DS 12=A
   13=AXY 14=AYZ 15=AZX 16=F
   17=SDEV 18=TD

5. Fourth E.OFMT value:Field format value:
   0=NONE No output
   1=MEAS Only measured value
   2=ERR Error
   3=OOT Out of tolerance

FORMAT DY(SHOULD, X=OOT, Y=ERR Z=MEAS) translates to è

=CALLSUB/TUTOR_FORMAT, TutorSub.PRG: E.OFMT,2,1,1,3,,
=CALLSUB/TUTOR_FORMAT, TutorSub.PRG: E.OFMT,2,1,2,2,,
=CALLSUB/TUTOR_FORMAT, TutorSub.PRG: E.OFMT,2,1,3,1,,

FORMAT DY(SHOULD, X=OOT, Y=OOT Z=OOT,CX=OOT,CY=OOT,CZ=OOT) translates to è

=CALLSUB/TUTORFORMAT, TutorSub.PRG: E.OFMT,2,1,1,3,,
=CALLSUB/TUTORFORMAT, TutorSub.PRG: E.OFMT,2,1,2,3,,
=CALLSUB/TUTORFORMAT, TutorSub.PRG: E.OFMT,2,1,3,3,,
=CALLSUB/TUTORFORMAT, TutorSub.PRG: E.OFMT,2,1,6,3,,
=CALLSUB/TUTORFORMAT, TutorSub.PRG: E.OFMT,2,1,7,3,,
=CALLSUB/TUTORFORMAT, TutorSub.PRG: E.OFMT,2,1,8,3,,