hexagon logo

Printing reports with serial # as file name.

I output a PDF report for every part I check and I currently use auto indexing to name them. There is a report comment at the beginning of the program that asks for the serial # of the part. I was wondering if it's possible to instead have PC DMIS automatically add that same serial # to the end of the file name instead of the index #. This would be helpful if I need to find the report for a specific piece later. I know I could just manually type it in each time. I'm just looking for a more efficient method since the serial #'s are often over 20 characters and I never remember what it was at the end of the program and I'd rather not take it off the machine before viewing the report in case I need to remeasure something. Am I asking too much here?
Parents
  • Copied from this thread: https://www.pcdmisforum.com/forum/pc-dmis-enterprise-metrology-software/pc-dmis-for-cmms/517800-setting-a-default-for-report-window-printing

    I have the file header label modified to use these tracefields for the report instead of the default PC-DMIS items.

    STARTUP    =ALIGNMENT/START,RECALL:USE_PART_SETUP,LIST=YES
                ALIGNMENT/END
                FORMAT/TEXT,OPTIONS,ID,HEADINGS,SYMBOLS, ;MEAS,NOM,TOL,DEV,OUTTOL, ,
                TRACEFIELD/DISPLAY=YES,REPORT=NO,DISPLAY MESSAGE=CMM Operator ; CMM Operator :
                TRACEFIELD/DISPLAY=YES,REPORT=NO,DISPLAY MESSAGE=Job # ; Job # :
                TRACEFIELD/DISPLAY=YES,REPORT=NO,DISPLAY MESSAGE=Serial # ; Serial # :
                TRACEFIELD/DISPLAY=YES,REPORT=NO,DISPLAY MESSAGE=Room Temperature ; Room Temperature :
                TRACEFIELD/DISPLAY=YES,REPORT=NO,DISPLAY MESSAGE=Room Humidity ; Room Humidity :
                TRACEFIELD/DISPLAY=YES,REPORT=NO,DISPLAY MESSAGE=Bubble drawing location ; Drawing Location :
                ASSIGN/V1=GETPROGRAMINFO("PCDMISVERSION")
                COMMENT/REPT,
                
                
                COMMENT/REPT,
                "PC-DMIS VERSION: " +V1
                COMMENT/REPT,
                
                
                ASSIGN/V_JN=GETTRACEVALUE("Job #")
                ASSIGN/V_SN=GETTRACEVALUE("Serial #")
                ASSIGN/V_99="\\"+V_JN
                ASSIGN/V_DATE=SYSTEMDATE("MMM dd, yyyy")
                ASSIGN/V_TIME=SYSTEMTIME("HH:mm")
                ASSIGN/V_NAME=GETPROGRAMINFO("PARTNAME")
                ASSIGN/V_REV=GETPROGRAMINFO("REVISION")
    
    MEASUREMENT ROUTINE GOES HERE
    
                PRINT/REPORT,EXEC MODE=END,$
                  TO_FILE=ON,OVERWRITE="T:\\CMM\\"+V_NAME+"\\RESULTS"+V_99+"\\"+V_NAME+" REV "+V_REV+" "+V_JN+" SN "+V_SN+".PDF",AUTO OPEN=OFF,$
                  TO_PRINTER=OFF,COPIES=1,$
                  TO_DMIS_REPORT=OFF,FILE_OPTION=INDEX,FILENAME=,$
                  REPORT_THEORETICALS=NONE,REPORT_FEATURE_WITH_DIMENSIONS=NO,$
                  TO_EXCEL=ON,OVERWRITE,FILENAME="T:\\CMM\\"+V_NAME+"\\RESULTS"+V_99+"\\"+V_NAME+" REV "+V_REV+" "+V_JN+" SN "+V_SN+".XLSX",AUTO OPEN=OFF,$
                  PREVIOUS_RUNS=DELETE_INSTANCES​
    


    Edited to use my current version of this print command. It is completely automated for the format we want.
Reply
  • Copied from this thread: https://www.pcdmisforum.com/forum/pc-dmis-enterprise-metrology-software/pc-dmis-for-cmms/517800-setting-a-default-for-report-window-printing

    I have the file header label modified to use these tracefields for the report instead of the default PC-DMIS items.

    STARTUP    =ALIGNMENT/START,RECALL:USE_PART_SETUP,LIST=YES
                ALIGNMENT/END
                FORMAT/TEXT,OPTIONS,ID,HEADINGS,SYMBOLS, ;MEAS,NOM,TOL,DEV,OUTTOL, ,
                TRACEFIELD/DISPLAY=YES,REPORT=NO,DISPLAY MESSAGE=CMM Operator ; CMM Operator :
                TRACEFIELD/DISPLAY=YES,REPORT=NO,DISPLAY MESSAGE=Job # ; Job # :
                TRACEFIELD/DISPLAY=YES,REPORT=NO,DISPLAY MESSAGE=Serial # ; Serial # :
                TRACEFIELD/DISPLAY=YES,REPORT=NO,DISPLAY MESSAGE=Room Temperature ; Room Temperature :
                TRACEFIELD/DISPLAY=YES,REPORT=NO,DISPLAY MESSAGE=Room Humidity ; Room Humidity :
                TRACEFIELD/DISPLAY=YES,REPORT=NO,DISPLAY MESSAGE=Bubble drawing location ; Drawing Location :
                ASSIGN/V1=GETPROGRAMINFO("PCDMISVERSION")
                COMMENT/REPT,
                
                
                COMMENT/REPT,
                "PC-DMIS VERSION: " +V1
                COMMENT/REPT,
                
                
                ASSIGN/V_JN=GETTRACEVALUE("Job #")
                ASSIGN/V_SN=GETTRACEVALUE("Serial #")
                ASSIGN/V_99="\\"+V_JN
                ASSIGN/V_DATE=SYSTEMDATE("MMM dd, yyyy")
                ASSIGN/V_TIME=SYSTEMTIME("HH:mm")
                ASSIGN/V_NAME=GETPROGRAMINFO("PARTNAME")
                ASSIGN/V_REV=GETPROGRAMINFO("REVISION")
    
    MEASUREMENT ROUTINE GOES HERE
    
                PRINT/REPORT,EXEC MODE=END,$
                  TO_FILE=ON,OVERWRITE="T:\\CMM\\"+V_NAME+"\\RESULTS"+V_99+"\\"+V_NAME+" REV "+V_REV+" "+V_JN+" SN "+V_SN+".PDF",AUTO OPEN=OFF,$
                  TO_PRINTER=OFF,COPIES=1,$
                  TO_DMIS_REPORT=OFF,FILE_OPTION=INDEX,FILENAME=,$
                  REPORT_THEORETICALS=NONE,REPORT_FEATURE_WITH_DIMENSIONS=NO,$
                  TO_EXCEL=ON,OVERWRITE,FILENAME="T:\\CMM\\"+V_NAME+"\\RESULTS"+V_99+"\\"+V_NAME+" REV "+V_REV+" "+V_JN+" SN "+V_SN+".XLSX",AUTO OPEN=OFF,$
                  PREVIOUS_RUNS=DELETE_INSTANCES​
    


    Edited to use my current version of this print command. It is completely automated for the format we want.
Children
No Data