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)
At worse, you can check each dimension individually for out of tolerance condition and tie it to an if statement to change the file name. Something like if/ dist1.outtol > 0 or dist2.outtol > 0 then ...
Could get burdensome if you have a lot of dimensions!