snap shot of area only when out of tolerance

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

  • snap shot of area only when out of tolerance

    I am trying to remove my snap shots when the character is all in tolerance, it works fine for profile when I use a set for the trigger, I use IF AND ELSE but when I have multiple locations having trouble.

  • #2
    I'm not exactly sure what you're trying to do but if you have multiple answers for if/else then you're probably better off using "Case" statements.
    Systems Integrator
    Hexagon Manufacturing Intelligence

    Comment


    • #3
      Something like?

      Code:
      DIM DIM_172= PROFiLE OF SURFACE OF CIRCLE DAT_G_RAD1 FORMONLY LEAST_SQR UNITS=IN ,$
      GRAPH=OFF TEXT=OFF MULT=10.00 ARROWDENSITY=100 OUTPUT=BOTH
      AX MEAS NOMINAL +TOL -TOL DEV OUTTOL
      M 0.0004 0.0000 0.0100 0.0000 0.0004 0.0000 ----|----
      IF/DIM_172.M.OUTTOL<>0
      ANALYSISVIEW/DIM_172,,
      END_IF/

      Comment


      • #4
        Pretty much exactly what Random said. I use something very similar to notify CMM operators that a part is out of spec and which way. Roughly it's:
        If
        id.diam>max
        comment\operator Part is too large!

        and the same for too small

        Comment


        • #5
          What I am doing is If a dimension is out of tolerance I want a screen shot of the area with graph on to show the operators.

          Dim 76_set= profile of surface of set set-76 formandlocation units=in ,$
          graph=off text=off mult=50.00 arrowdensity=100 output=none
          ax nominal +tol -tol meas dev outtol
          m 0.0000 0.0100 0.0100 0.0000 0.0000 0.0000 ----|----
          $$ yes,
          76 light blue
          viewset1 =viewset/
          recall/viewset,viewset1
          if/76_set.outtol==0
          end_if/
          else/
          display/metafile, "", to fit, good
          end_else/
          Last edited by MikeF; 07-09-2020, 06:33 AM.

          Comment


          • #6
            Try changing your logic to..

            Code:
            if/76_set.outtol<>0
              display/metafile, "", to fit, good
            end_if/

            Neil Challinor
            PC-DMIS Product Owner

            T: +44 870 446 2667 (Hexagon UK office)
            E: [email protected]

            Comment


            • #7
              I changed one and it worked also, do you think I need to change all the other ones? they seem to work fine here.

              Comment


              • #8
                I would change them all to what I recommended. It's basically doing the same thing, just in a more simplified way. Your original logic worked like this...

                If the dimension is in tolerance (i.e. the dimension passed)
                do nothing
                otherwise (else)
                display a screenshot on the report

                My logic works like this...

                If the dimension axis is NOT in tolerance (i.e the dimension failed)
                display a screenshot on the report

                Hope that makes sense. One thing I just spotted that will also make a difference is how you reference your dimension. In your code example you use dimension name.OUTTOL which will only work if the dimension only reports one axis (X,Y,Z,D,F,TP etc). It would be better to reference the axis explicitly, for example...

                dimension name.M.OUTTOL - this would normally return the result of a distance, or GD&T dimension (except for legacy position)
                dimension name.X.OUTTOL - this would return the X result, evaluated by a location dimension
                dimension name.Y.OUTTOL - this would return the Y result, evaluated by a location dimension
                dimension name.Z.OUTTOL - this would return the Z result, evaluated by a location dimension
                dimension name.D.OUTTOL - this would return the result of a diameter evaluated by a location dimension
                dimension name.TP.OUTTOL- this would return the result of a legacy position dimension

                and so on...

                If you're not sure what the reference is for the field you want to check, use the assignment builder : INSERT>ASSIGNMENT, click on ASSIGN FROM. Under EXPRESSION OR ELEMENT TYPE select DIMENSIONS, select the ID of the dimension you're looking at then look at the list of EXTENSIONS to find the one you're after.
                Neil Challinor
                PC-DMIS Product Owner

                T: +44 870 446 2667 (Hexagon UK office)
                E: [email protected]

                Comment


                • #9
                  Thank you for your help, what about when I have several say Y axis locations dimensions character (119) 119_1 to 119_20 and one snap shot for all, how can I do this if just one location is off?
                  Last edited by MikeF; 07-10-2020, 08:42 AM.

                  Comment

                  Related Topics

                  Collapse

                  Working...
                  X