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.
@SABarber:
The PRINTART is set by adding variable-values.
First I ASSIGN PRINTART to 0
If I want a paper print, I have a variable (PAPER) which will be ASSIGN to the value of 1
If I want a pdf print, I have a variable (PDF) which will be ASSIGN to the value of 10
Then I ASSIGN PRINTART to str(PAPER+PDF)
This gives my the 3 combinations (1, 10 or 11)
The PRINT is set at the bottom of the program. The last thing that the program makes.
In my report I have made several prints of values along the way to check that my formulas are right.
Everything is as it's supposed to be.
I also have a variable that puts my PDF-filename together, and it works fine as well.
The problem is my PRINT commands.
I can't get them to work.
If I uncheck the global, nothing happens.
@bphillips:
If I let my marked sets have the global checked, it by-passes my 3 combinations, and prints to paper AND to PDF, no matter what I answer/choose.
Is it possible that I'm hit by some kind of software bug?
@SABarber:
The PRINTART is set by adding variable-values.
First I ASSIGN PRINTART to 0
If I want a paper print, I have a variable (PAPER) which will be ASSIGN to the value of 1
If I want a pdf print, I have a variable (PDF) which will be ASSIGN to the value of 10
Then I ASSIGN PRINTART to str(PAPER+PDF)
This gives my the 3 combinations (1, 10 or 11)
The PRINT is set at the bottom of the program. The last thing that the program makes.
In my report I have made several prints of values along the way to check that my formulas are right.
Everything is as it's supposed to be.
I also have a variable that puts my PDF-filename together, and it works fine as well.
The problem is my PRINT commands.
I can't get them to work.
If I uncheck the global, nothing happens.
@bphillips:
If I let my marked sets have the global checked, it by-passes my 3 combinations, and prints to paper AND to PDF, no matter what I answer/choose.
Is it possible that I'm hit by some kind of software bug?