hexagon logo

passing text in a comment to script variable?

Does anyone know how to pull the text out of a report comment feature and into a variable in the basic script editor?
Parents
  • Yeah I do this at the start of every program I run. Also keep in mind you can have any comment show in the report. It doesn't have to be a report comment specifically. If you create the comment, then place the cursor in the comment and hit F9. There is a little check box for show comment in report.

    $$ NO,====================================================
         ,PART INFORMATION:
         ,CMMPROGRAM=Part # & what is being checked
         ,PRINTREV1=Print #, and Rev
         ,PARTNAM=Part Name
         ,PARTNUM=Is Part # used in-house, may be the same as Print #
         ,====================================================
                ASSIGN/CMMPROGRAM=""
                ASSIGN/PRINTREV1=""+" , Rev."+""
                ASSIGN/PARTNAM=""
                ASSIGN/PARTNUM=""
    $$ NO,====================================================
         ,PROGRAM DISPLAY @ EXECUTION, Program Information
         ,====================================================
    EXECUTE    =COMMENT/YESNO,NO,
                                ,==================================
                                ,CMMPROGRAM
                                ,==================================
                                ,
                                ,
                                ,THIS PROGRAM INSPECTS THE FOLLOWING PART:  
                                , 
                                ,PARTNUM
                                ,PARTNAM
                                , 
                                ,"PRINT: " + PRINTREV1
                                , 
                                , 
                                ,DO YOU WISH TO CONTINUE ?
                IF_GOTO/EXECUTE.INPUT=="NO",GOTO = END
    


    I show the Yes/No question on my report. That way I can prove the operator hit yes. I also run a log to know if they crash the machine and don't tell me.
Reply
  • Yeah I do this at the start of every program I run. Also keep in mind you can have any comment show in the report. It doesn't have to be a report comment specifically. If you create the comment, then place the cursor in the comment and hit F9. There is a little check box for show comment in report.

    $$ NO,====================================================
         ,PART INFORMATION:
         ,CMMPROGRAM=Part # & what is being checked
         ,PRINTREV1=Print #, and Rev
         ,PARTNAM=Part Name
         ,PARTNUM=Is Part # used in-house, may be the same as Print #
         ,====================================================
                ASSIGN/CMMPROGRAM=""
                ASSIGN/PRINTREV1=""+" , Rev."+""
                ASSIGN/PARTNAM=""
                ASSIGN/PARTNUM=""
    $$ NO,====================================================
         ,PROGRAM DISPLAY @ EXECUTION, Program Information
         ,====================================================
    EXECUTE    =COMMENT/YESNO,NO,
                                ,==================================
                                ,CMMPROGRAM
                                ,==================================
                                ,
                                ,
                                ,THIS PROGRAM INSPECTS THE FOLLOWING PART:  
                                , 
                                ,PARTNUM
                                ,PARTNAM
                                , 
                                ,"PRINT: " + PRINTREV1
                                , 
                                , 
                                ,DO YOU WISH TO CONTINUE ?
                IF_GOTO/EXECUTE.INPUT=="NO",GOTO = END
    


    I show the Yes/No question on my report. That way I can prove the operator hit yes. I also run a log to know if they crash the machine and don't tell me.
Children
No Data