Help me please...need variable expression

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

  • Help me please...need variable expression

    I will be the first to admit that I am not up to using expressions. Have this situation where I need to measure a depth of a ring groove and subtract a known radius value from the measured z value. Not enough room to create a radius at the bottom or I'd use that route. Basically I am looking for a Assign V1/ option to let me take the measured pnt.z and subtract a radius .022 and use that value to define a distance from point to surface. Any help is most appreciated. Thanks in advance.

  • #2
    Code:
    PNT1 =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
    THEO/<0.47,-1.81,-0.27>,<0,0,1>
    ACTL/<0.47,-1.81,-0.27>,<0,0,1>
    TARG/<0.47,-1.81,-0.27>,<0,0,1>
    SHOW FEATURE PARAMETERS=NO
    SHOW CONTACT PARAMETERS=YES
    AVOIDANCE MOVE=NO,DISTANCE=0.3937
    SHOW HITS=NO
    ASSIGN/V1=PNT1.Z-.022
    F1 =GENERIC/POINT,DEPENDENT,CARTESIAN,$
    NOM/XYZ,<PNT1.TX,PNT1.TY,V1>,$
    MEAS/XYZ,<PNT1.X,PNT1.Y,V1>,$
    NOM/IJK,<0,0,1>,$
    MEAS/IJK,<0,0,1>
    $$ NO,
    OR
    YoU
    COULD
    DO
    THIS
    PNT2 =FEAT/POINT,CARTESIAN,NO
    THEO/<0.47,-1.81,-0.314>,<0,0,1>
    ACTL/<0.47,-1.81,-0.314>,<0,0,1>
    CONSTR/POINT,OFFSET,F1,0,0,-0.022

    Comment


    • #3
      something like this? Generic feature with z location measured at PNT.Z minus fixed 0.022 value.
      Did one assignment for theo and one for actual, just to be sure your nominal doesn't dance around on you.
      Code:
               ASSIGN/V1=PNT.TZ-0.022
               ASSIGN/V2=PNT.Z-0.022
      F1         =GENERIC/POINT,DEPENDENT,CARTESIAN,$
                  NOM/XYZ,<0,0,V1>,$
                  MEAS/XYZ,<0,0,V2>,$
                  NOM/IJK,<0,0,1>,$
                  MEAS/IJK,<0,0,1>
      FYI you can simply put this directly into the generic feature as well, without the need for assign functions:
      Code:
      F1         =GENERIC/POINT,DEPENDENT,CARTESIAN,$
                  NOM/XYZ,<0,0,PNT.TZ-0.022>,$
                  MEAS/XYZ,<0,0,PNT.Z-0.022>,$
                  NOM/IJK,<0,0,1>,$
                  MEAS/IJK,<0,0,1>

      Comment


      • #4
        Thanks guys, really appreciate it much. I actually chose the simplest route of just offsetting the point's z value. Duh! Anyway thanks again

        Comment


        • #5
          Or just with variable...
          Does the surface a plane ?
          If yes :
          ASSIGN/V1=DOT((PNT1.XYZ-MPOINT(0,0,0.022))-PL1.XYZ,PL1.IJK)

          If the distance is calculated between two points :
          ASSIGN/V1=SQRT(DOT((PNT1.XYZ-MPOINT(0,0,0.022))-PNT2.XYZ,(PNT1.XYZ-MPOINT(0,0,0.022))-PNT2.XYZ))

          In other cases, it's also "variabilizable", but I need a little more info about the surface !

          Comment

          Related Topics

          Collapse

          Working...
          X