hexagon logo

Getprograminfo

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)
Parents
  • Hey All...


    I'm trying to do something about operators saving reports with out of tol dimensions on our network.​

    I'm thinking about adding the below to a sample program that doesn't have it currently and perhaps renaming file based on results or print out the result..................:

    ASSIGN/NUMOOT=GETPROGRAMINFO("NUMOOT")

    My question is does this kick out a positive value for an out of tol dimension that is "not reported"?
    ------we have numerous dims that are not reported that can be out of tol sometimes, I prefer to bypass these

    And I believe I read somewhere about legacy dimensions not playing nice with this feature? Is this correct somehow?

    Currently on 2017 and testing programs out on 2021....


    Thanks....



Reply
  • Hey All...


    I'm trying to do something about operators saving reports with out of tol dimensions on our network.​

    I'm thinking about adding the below to a sample program that doesn't have it currently and perhaps renaming file based on results or print out the result..................:

    ASSIGN/NUMOOT=GETPROGRAMINFO("NUMOOT")

    My question is does this kick out a positive value for an out of tol dimension that is "not reported"?
    ------we have numerous dims that are not reported that can be out of tol sometimes, I prefer to bypass these

    And I believe I read somewhere about legacy dimensions not playing nice with this feature? Is this correct somehow?

    Currently on 2017 and testing programs out on 2021....


    Thanks....



Children