hexagon logo

Learning expressions

Does anybody know if Hexagon offers a (more or less) programming class to learn to use expressions? I've been wanting to get started on these, and reading through the core files. I can think of several ways at least that they can be used here. Locally there is a metrology shop that offers a four hour course, but I took Java in college and as I recall programming isn't something you pick up in four hours.
Parents
  • One of the bigger parts we have here (about 120" long) the customer wants us to run it datum A down. Datum A consists of 7 target points so we made 7 posts for the datum A to lay on. They are at different heights too. After posts are installed CMM checks the heights and then informs the operator how they measure in Z. So the Z axis measurement is pulled out of the feature as a variable and then compared to nominal. This way the operator can shim the posts if needed to make the datum A flat.

    PL05       =FEAT/CONTACT/PLANE/DEFAULT,CARTESIAN,TRIANGLE
                THEO/<11,-0.2,0>,<0,0,1>
                ACTL/<11,-0.1998,-0.0005>,<0.0000518,-0.0002234,1>
                TARG/<11,-0.2,0>,<0,0,1>
                ANGLE VEC=<-1,0,0>,RADIAL
                REPORT VEC=<0,0,1>
                SHOW FEATURE PARAMETERS=NO
                SHOW CONTACT PARAMETERS=NO
    $$ NO,
                ****************************************
                ASSIGN/VA5=PL05.Z
    $$ NO,
                ****************************************
    ASK_P5     =COMMENT/YESNO,NO,FULL SCREEN=YES,AUTO-CONTINUE=NO,
                "Z NOM= 0.00"
                "THE POST IS AT AT"
                "Z ACT ="+ "  " + VA5
                ADJUST AND PRESS NO 
                OR IF OK PRESS YES
    $$ NO,
                ****************************************
                IF/ASK_P5.INPUT=="YES"
                GOTO/NEXT_A6
                END_IF/
                IF/ASK_P5.INPUT=="NO"
                GOTO/POST_A5
                END_IF/
Reply
  • One of the bigger parts we have here (about 120" long) the customer wants us to run it datum A down. Datum A consists of 7 target points so we made 7 posts for the datum A to lay on. They are at different heights too. After posts are installed CMM checks the heights and then informs the operator how they measure in Z. So the Z axis measurement is pulled out of the feature as a variable and then compared to nominal. This way the operator can shim the posts if needed to make the datum A flat.

    PL05       =FEAT/CONTACT/PLANE/DEFAULT,CARTESIAN,TRIANGLE
                THEO/<11,-0.2,0>,<0,0,1>
                ACTL/<11,-0.1998,-0.0005>,<0.0000518,-0.0002234,1>
                TARG/<11,-0.2,0>,<0,0,1>
                ANGLE VEC=<-1,0,0>,RADIAL
                REPORT VEC=<0,0,1>
                SHOW FEATURE PARAMETERS=NO
                SHOW CONTACT PARAMETERS=NO
    $$ NO,
                ****************************************
                ASSIGN/VA5=PL05.Z
    $$ NO,
                ****************************************
    ASK_P5     =COMMENT/YESNO,NO,FULL SCREEN=YES,AUTO-CONTINUE=NO,
                "Z NOM= 0.00"
                "THE POST IS AT AT"
                "Z ACT ="+ "  " + VA5
                ADJUST AND PRESS NO 
                OR IF OK PRESS YES
    $$ NO,
                ****************************************
                IF/ASK_P5.INPUT=="YES"
                GOTO/NEXT_A6
                END_IF/
                IF/ASK_P5.INPUT=="NO"
                GOTO/POST_A5
                END_IF/
Children
No Data