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
  • @SABarber:
    No I haven't tried it lately, but when I first started up with this "project", I read taht I should use START.
    I'll give it a try.

    @bphillips:
    I can't use Marked Sets in this case.


    It's a bit difficult for me to explain, but buttomline is that I have three combinations, that doen't work as I'd like them to.
    The execution of the one of the three PRINT commands.
    I can't get my head around this, and somhow it doesn't make sence to me why it has to be that difficult.

    I guess that I'm not the first one thinking in this direction - or?

    Never the less: Thank you all for putting your head into this. I hope I one day can pay you back.


    I'm working on four levels. Meaning that I have one Marked Set for production measurement [1] and another one for the CNC-guy with setting the part up [2].
    (Production measurement doesn't measure all dimentions)
    Furthermore I have option [3] and [4], which gives a option for
    Please se my first posting:

    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.


    These option are also ASSIGN the PRINTART.
    According to the three options "YES", "NO" and "ASK".
    Sometimes the ASSIGN is forced, and in other options the program ask the operator if he/she want something else.
Reply
  • @SABarber:
    No I haven't tried it lately, but when I first started up with this "project", I read taht I should use START.
    I'll give it a try.

    @bphillips:
    I can't use Marked Sets in this case.


    It's a bit difficult for me to explain, but buttomline is that I have three combinations, that doen't work as I'd like them to.
    The execution of the one of the three PRINT commands.
    I can't get my head around this, and somhow it doesn't make sence to me why it has to be that difficult.

    I guess that I'm not the first one thinking in this direction - or?

    Never the less: Thank you all for putting your head into this. I hope I one day can pay you back.


    I'm working on four levels. Meaning that I have one Marked Set for production measurement [1] and another one for the CNC-guy with setting the part up [2].
    (Production measurement doesn't measure all dimentions)
    Furthermore I have option [3] and [4], which gives a option for
    Please se my first posting:

    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.


    These option are also ASSIGN the PRINTART.
    According to the three options "YES", "NO" and "ASK".
    Sometimes the ASSIGN is forced, and in other options the program ask the operator if he/she want something else.
Children
No Data