How to turn Part-Header into variables

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to turn Part-Header into variables

    with the following lines you can turn the 4 values of the
    part-header into variables:

    Code:
    ASSIGN/PART = STR(GETTEXT(191, 1, {FILEHEDR}))
    ASSIGN/REVI = STR(GETTEXT(192, 1, {FILEHEDR}))
    ASSIGN/SERI = STR(GETTEXT(193, 1, {FILEHEDR}))
    ASSIGN/STAT = STR(GETTEXT(194, 1, {FILEHEDR}))
    for a short description see the attached pdf-file
    Part-HeaderInVariables.pdf
    Cheers
    bitsandmore

  • #2
    [IMG]http://www.*******.com/misc/allthemaster.gif[/IMG]

    I want to be like you when I grow up. Thanks for that info!!
    Links to my utilities for PCDMIS

    Comment


    • #3
      where do you input this code at?

      Comment


      • #4
        Anywhere in your part program.
        <internet bumper sticker goes here>

        Comment


        • #5
          where do I add the text of what I want it to say?

          Say I want to change part name to E/C Level, what would I do?

          Comment


          • #6
            Also, would this only change the header in the report? Is there any way to automaticly change it in the command window?

            Comment


            • #7
              It does not change the info. It sets variables that contain the info for useage somewhere else. Say for some reason you need to reference the part number in the header somewhere else in the part program you'd do this.

              If you want to change the info you'd probably have to use the put text method.
              <internet bumper sticker goes here>

              Comment


              • #8
                Gotcha, thanks for the explination.

                Comment


                • #9
                  Originally posted by Jeff Hunt View Post
                  Also, would this only change the header in the report? Is there any way to automaticly change it in the command window?
                  Jeff, if you want to change the value of what is in the header info, see this thread.

                  http://www.pcdmisforum.com/showthread.php?t=3301

                  Take note of that last few statements in the script: if you do NOT refresh your Report Window, your printed report will have the old information. Not until you refresh will the new info be visible. You can refresh using the refresh button in PC-DMIS, or do like I do in the script and force a refresh during execution.


                  Jan.
                  ***************************
                  PC-DMIS/NC 2010MR3; 15 December 2010; running on 18 machine tools.
                  Romer Infinite; PC-DMIS 2010 MR3; 15 December 2010.

                  Comment

                  Related Topics

                  Collapse

                  Working...
                  X