hexagon logo

Printing reports to paper, pdf and SPC

Hi guys/gurus.

I've been trying to make a Master-template that saves paper everytime I run a measurement.
I have 4 input-values, and depending on the answer there is a different "print set-up".

1) Production-measurement - running according to a time/pieceplan.
2) Set-up - used until CNC-machine is setup for producing "usable" parts.
3) Complains - Yes they happen :-)
4) Test - used when we have smaller programs that will be run once or other tasks.

My plan is:
If OoT=0 and [1], then NO PRINT TO PAPER - PRINT TO PDF - SEND TO SPC.
If OoT>0 and [1], then PRINT TO PAPER - NO PDF - NO SPC.

If [2], then PRINT TO PAPER - ASK FOR PDF - NO SPC.
If [3], then ASK IF PAPER - ASK IF PDF - NO SPC.
If [4], then ASK IF PAPER - ASK IF PDF - ASK IF SPC.


All in all, this gives me 3 combinations:
PRINTART=1 Print to paper and NO PDF.
PRINTART=10 NO paper-print, but PDF.
PRINTART=11 Print to paper, and to PDF.

It doesn't print at all!
I have to print it manually from the Report window, and that wasn't the intension.

MY CODE:

IF/PRINTART== 1
PRINT/REPORT,EXEC MODE=START,$
TO_FILE=OFF,AUTO=1,$
TO_PRINTER=ON,$
TO_DMIS_REPORT=OFF,FILE_OPTION=INDEX,FILENAME=,$
REPORT_THEORETICALS=NONE,REPORT_FEATURE_WITH_DIMENSIONS=NO,$
PREVIOUS_RUNS=DELETE_INSTANCES
END_IF/
IF/PRINTART== 10
PRINT/REPORT,EXEC MODE=START,$
TO_FILE=ON,OVERWRITE=REP_NAME,$
TO_PRINTER=OFF,$
TO_DMIS_REPORT=OFF,FILE_OPTION=INDEX,FILENAME=,$
REPORT_THEORETICALS=NONE,REPORT_FEATURE_WITH_DIMENSIONS=NO,$
PREVIOUS_RUNS=DELETE_INSTANCES
END_IF/
IF/PRINTART== 11
PRINT/REPORT,EXEC MODE=START,$
TO_FILE=ON,OVERWRITE=REP_NAME,$
TO_PRINTER=ON,$
TO_DMIS_REPORT=OFF,FILE_OPTION=INDEX,FILENAME=,$
REPORT_THEORETICALS=NONE,REPORT_FEATURE_WITH_DIMENSIONS=NO,$
PREVIOUS_RUNS=DELETE_INSTANCES
END_IF/


Please notice the MODE=START, which was made after reading the help in PC-DMIS


What am I doing wrong, or have I forgotten something?
Please help or comment.


Best regards
Michael
Parents
  • Once you checked the global print and closed the marked sets window did you go back into File>Printing>Report Window Print Setup and UNcheck the file and printer?
    The global print check box forces dmis to execute the edit window commands but if the File>Printing>Report Window Print Setup is still checked dmis will execute that instead.
    At least that is what I had to do to get my double print commands to work. I'm using a Comment/YES NO to do one or the other.

    Still unsure how you tell dmis which print command to use 1,10 or 11?
Reply
  • Once you checked the global print and closed the marked sets window did you go back into File>Printing>Report Window Print Setup and UNcheck the file and printer?
    The global print check box forces dmis to execute the edit window commands but if the File>Printing>Report Window Print Setup is still checked dmis will execute that instead.
    At least that is what I had to do to get my double print commands to work. I'm using a Comment/YES NO to do one or the other.

    Still unsure how you tell dmis which print command to use 1,10 or 11?
Children
No Data