Variable for Getting Part name

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

  • Variable for Getting Part name

    How can i grab the part name?
    Also for future reference how can i look up the variables being used for part name, REV number, SER number ect....
    just shooting in the dark with GETPROGRAMINFO ("name")


    Code:
    PART NAME  : 01-107-17039-100 MFR 10.0 M-LOK MACHINED <----------------------How to Grab part name?
    REV NUMBER : B
    SER NUMBER : 
    STATS COUNT : 1
    
    STARTUP    =ALIGNMENT/START,RECALL:USE_PART_SETUP,LIST=YES
                ALIGNMENT/END
                MODE/MANUAL
                FORMAT/TEXT,OPTIONS, ,HEADINGS,SYMBOLS, ;NOM,TOL,MEAS,DEV,OUTTOL, , 
                MOVESPEED/ 500
                ACCELERATION/MAXACCELX=1500, MAXACCELY=1500, MAXACCELZ=1500
                PREHIT/0.05
                RETRACT/0.05
                FLY/ON
                COMMENT/OPER,NO,FULL SCREEN=YES,AUTO-CONTINUE=NO,
                Fixture part 15 slots to front.
                LOADPROBE/STAR PROBE
                TIP/T1A0B0, SHANKIJK=0, 0, 1, ANGLE=0
    C1         =COMMENT/INPUT,YES,FULL SCREEN=YES,
                Badge ID Number
    C2         =COMMENT/INPUT,NO,FULL SCREEN=YES,
                Insert Work Order "Numbers Only"
    C3         =COMMENT/INPUT,NO,FULL SCREEN=YES,
                Insert Part # "Numbers Only"
                ASSIGN/P=GETPROGRAMINFO("name") <------------------------ Tried this doesn't work

  • #2
    Just answered my own question its GETPROGRAMINFO ("partname") lucky guessing....
    but for future reference how can i look up the variables?
    Last edited by Jakep379; 03-30-2018, 10:55 AM.

    Comment


    • #3
      Hit F1 and search for "A List of Available Data Types".

      Comment


      • #4
        Another method



        PART NAME : Header
        REV NUMBER : Rev
        SER NUMBER :
        STATS COUNT : 1


        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}))

        B&S CHAMELEON/PCDMIS CAD++ V2011

        There are no bugs, only "UNDOCUMENTED ENHANCEMENTS!"

        sigpic

        Comment


        • #5
          Just don't forget to input the part number in the header. Does your file name have the Part number in it? If it does, pull it from there. Far more reliable for me.
          PcDmis 2015.1 SP10 CAD++
          Global 7-10-7 DC800S

          Comment

          Working...
          X