hexagon logo

How can I save past runs as individual files

Hello,

I am relatively new to CMM programing. I was wondering if there was any way to set up a system where when a measurement routine ends, the program automatically saves the routine with the measurement points for that specific serial number to a set file directory. It's been a hassle for when I forget to print out a report at the end of a routine, go to run the next part and I lose my information for the previous one forever. I would like to have it set up as to where, when a measurement routine ends, the program asks me what i could like to name the file, and where to save it. Would someone with more knowledge of the program be able to assist me with some code that I can put in my programs so that this can be done, please?

Thanks
Parents
  • I am having a similar problem. I would like to save .pdf files created from reports to network folders. Recently we updated to pc-dmis 2020 r2, and we are using windows 10. Old programs work, but new programs give me a popup asking me where I would like to save the file. The code at the top of the program looks like this:

    PART NAME : 0035_6
    REV NUMBER : C
    SER NUMBER :
    STATS COUNT : 22

    STARTUP =ALIGNMENT/START,RECALL:USE_PART_SETUP,LIST=YES
    ALIGNMENT/END
    STATS/ON,DATAPAGE,$
    DIRECTORY=,$
    READ=0,WRITE=0,MEMPAGES=0,FEATURE NAME,CONTROLCALC ON,$
    STATS/END
    FORMAT/TEXT,OPTIONS,ID,HEADINGS,SYMBOLS, ;NOM,TOL,MEAS,DEV,OUTTOL, ,
    $$ NO,
    .
    .
    PROGRAMER : DARRIN S
    .
    PROVEOUT DATE :
    PROVEOUT SIGNOFF :
    .
    .
    PROGRAM NOTES / REVISIONS :
    .
    .LAST EDITED BY DARRIN S. 6/9/2021

    C1 =COMMENT/INPUT,YES,FULL SCREEN=NO,
    'MO #'
    C2 =COMMENT/INPUT,YES,FULL SCREEN=NO,
    'EMPLOYEE #'
    C3 =COMMENT/INPUT,YES,FULL SCREEN=NO,
    'WORK CENTER #'
    C4 =COMMENT/INPUT,YES,FULL SCREEN=NO,
    'WORK OFFSET #'
    C5 =COMMENT/INPUT,YES,FULL SCREEN=NO,
    'MO STATUS'
    C6 =COMMENT/INPUT,YES,FULL SCREEN=NO,
    'INSPECTION GAGE #'
    TRACEFIELD/DISPLAY=NO,REPORT=NO,DISPLAY MESSAGE=MO # ; MO # : C1.INPUT
    TRACEFIELD/DISPLAY=NO,REPORT=NO,DISPLAY MESSAGE=EMPLOYEE # ; EMPLOYEE # : C2.INPUT
    TRACEFIELD/DISPLAY=NO,REPORT=NO,DISPLAY MESSAGE=WORK CENTER # ; WORK CENTER # : C3.INPUT
    TRACEFIELD/DISPLAY=NO,REPORT=NO,DISPLAY MESSAGE=OFFSET # ; OFFSET # : C4.INPUT
    TRACEFIELD/DISPLAY=NO,REPORT=NO,DISPLAY MESSAGE=MO STATUS ; MO STATUS : C5.INPUT
    TRACEFIELD/DISPLAY=NO,REPORT=NO,DISPLAY MESSAGE=INSPECTION GAGE # ; INSPECTION GAGE # : C6.INPUT

    Then the save to network code at the bottom of the program looks like this:

    ASSIGN/PART_NUMBER="0035"
    ASSIGN/JOB_NUMBER=C1.INPUT
    ASSIGN/FILESTORELOC="Q:\\APM\\Quality\\Public\\CMM REPORTS\\CURRENT YEAR\\BRAVO\\0035\"
    ASSIGN/FILENAME=PART_NUMBER+"_"+JOB_NUMBER+"_"+SYSTEMDATE ("MMMM dd,yyyy")+"_"+SYSTEMTIME("hh:mm:ss")+".PDF"
    ASSIGN/VAR_FILE=FILESTORELOC+FILENAME
    PRINT/REPORT,EXEC MODE=END,$
    TO_FILE=ON,APPEND=VAR_FILE.PDF,AUTO OPEN=OFF,$
    TO_PRINTER=OFF,COPIES=1,$
    TO_DMIS_REPORT=OFF,FILE_OPTION=OVERWRITE,FILENAME= VAR_FILE,$
    REPORT_THEORETICALS=NONE,REPORT_FEATURE_WITH_DIMEN SIONS=NO,$
    TO_EXCEL=OFF,$
    PREVIOUS_RUNS=DELETE_INSTANCES
    STATS/TRANSFER,DIRECTORY=C:\SPCDATA
    ROUTINE/END

    I even tried using code from old programs to send the new report to the wrong folder, but I still get the popup. JOB_NUMBER comes from the C1 comment. I know they are different, but that still works on old programs. What am I missing?
  • Oh! I will ask our IT department for help. Thank you!
Reply Children
No Data