Trying to start converting our PDMIS program to output to a PDF. I've gotten all of the variables setup to store the reports based on things like part name, time, date. But I'm trying to add an if/then statement to change the file name to indicate that a dimension failed.
I've search the forums here and people are using:
ASSIGN/NUMOOT=GETPROGRAMINFO("NUMOOT")
But it always reads a 0.
I'm using v2013, is it not the correct code for this version? Am I missing something before this line? Will it always show 0 offline? (I forced a nominal to make it OOT)
I guess it depends on when you are checking the value.
The check should be after all dimension you are interested in.
Will be set during execution of the assign command.
Just changing a tolerance and hovering over the assign will not update the oot count. That is a job for execution.
I have executed it, when the program saves the report as a PDF it will not include _____REJECTED_____ in the file name. If the command was added after my current, at the machine, version then I might be dead in the water. I think at one point we tried installing v2016 at the machine but something wouldn't work right, like auto feature icons were greyed out.