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
  • This will do what you need.

    Add an input to the program for serial number or use your existing one. Insert a "PRINT/" command. Click on it and do F9 to set the File path and file name. Save that. Then in the edit window, next to Auto, set it so the SN's comment input. [EX. =C1.INPUT]

    C1 =COMMENT/INPUT,NO,FULL SCREEN=NO,
    Serial Number
    PRINT/REPORT,EXEC MODE=END,$
    TO_FILE=ON,AUTO=C1.INPUT,OUTPUT_FORMAT/PDF,$
    RESET_REPORT=YES,AUTO OPEN=OFF,$
    TO_PRINTER=OFF,COPIES=1,$
    TO_DMIS_REPORT=OFF,FILE_OPTION=INDEX,FILENAME=,$
    REPORT_THEORETICALS=NONE,REPORT_FEATURE_WITH_DIMEN SIONS=NO,$
    TO_EXCEL=OFF,$
    PREVIOUS_RUNS=DELETE_INSTANCES​
Reply
  • This will do what you need.

    Add an input to the program for serial number or use your existing one. Insert a "PRINT/" command. Click on it and do F9 to set the File path and file name. Save that. Then in the edit window, next to Auto, set it so the SN's comment input. [EX. =C1.INPUT]

    C1 =COMMENT/INPUT,NO,FULL SCREEN=NO,
    Serial Number
    PRINT/REPORT,EXEC MODE=END,$
    TO_FILE=ON,AUTO=C1.INPUT,OUTPUT_FORMAT/PDF,$
    RESET_REPORT=YES,AUTO OPEN=OFF,$
    TO_PRINTER=OFF,COPIES=1,$
    TO_DMIS_REPORT=OFF,FILE_OPTION=INDEX,FILENAME=,$
    REPORT_THEORETICALS=NONE,REPORT_FEATURE_WITH_DIMEN SIONS=NO,$
    TO_EXCEL=OFF,$
    PREVIOUS_RUNS=DELETE_INSTANCES​
Children
No Data