insert comment when something is out of tolerance

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

  • insert comment when something is out of tolerance

    hello everybody
    my english is not very good
    a have this doubt
    I would like to display a comment in the report, only when a feature appear out of tolerance
    I'm trying inserting control pairs (if/end _if) but I don't know how to elaborate the code or sintaxys to insert the comment only when appears something out of tolerance
    someone can help me please
    Kalepito
    Join the dark side we have beer
    pcdmis4.3mr1

  • #2
    kalepito, I use this in a program to print out analysis view only if profile is out of tolerance and it has worked ok so far. I adjusted for your situation (say, a dimension named "DIM_X") but could be any feature you wish.

    Code:
    DIM DIM_X= 2D DISTANCE FROM PLANE PLN_HALFMOON1 TO PLANE 075_PLN     (CENTER TO CENTER),NO_RADIUS  UNITS=IN,$
    GRAPH=OFF  TEXT=OFF  MULT=5.00  OUTPUT=BOTH
    AX       MEAS    NOMINAL       +TOL       -TOL        DEV     OUTTOL
    M       0.0749     0.0550     0.0030     0.0030     0.0199     0.0169 ------->
                IF/ABS(DIM_X.OUTTOL)>0
                COMMENT/REPT,
                Hey, who cut the queso???
                END_IF/
    NB: you'll probably want to use a different comment.
    hope it helps.
    Last edited by sealevel; 09-28-2012, 06:57 PM.

    Comment


    • #3
      yes I do that but it spend a lot of time I would like something a little bit fast because the reports are large, this is I'm doing but the quality people wants something easy to identify the reports goods and no goods and my idea was a comment like this because they print the reports in grayscale and they cant't see the red or yellow colors to easy identification.

      this is an example


      DIM LOC2= LOCATION OF POINT PNT2 UNITS=IN ,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
      AX NOMINAL +TOL -TOL MEAS DEV OUTTOL
      X 2.0000 0.0001 0.0001 2.0000 0.0000 0.0000 ----#----
      END OF DIMENSION LOC2
      DIM LOC3= LOCATION OF POINT PNT1 UNITS=IN ,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
      AX NOMINAL +TOL -TOL MEAS DEV OUTTOL
      X 1.0020 0.0001 0.0001 1.0000 -0.0020 0.0019 <--------
      END OF DIMENSION LOC3
      DIM LOC4= LOCATION OF POINT PNT1 UNITS=IN ,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
      AX NOMINAL +TOL -TOL MEAS DEV OUTTOL
      X 1.0020 0.0001 0.0001 1.0000 -0.0020 0.0019 <--------
      END OF DIMENSION LOC4
      DIM LOC5= LOCATION OF POINT PNT1 UNITS=IN ,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
      AX NOMINAL +TOL -TOL MEAS DEV OUTTOL
      X 1.0020 0.0001 0.0001 1.0000 -0.0020 0.0019 <--------
      END OF DIMENSION LOC5
      DIM LOC1= LOCATION OF POINT PNT1 UNITS=IN ,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
      AX NOMINAL +TOL -TOL MEAS DEV OUTTOL
      X 1.0020 0.0001 0.0001 1.0000 -0.0020 0.0019 <--------
      END OF DIMENSION LOC1
      IF/ARRAY(LOC1(LOC2(LOC3(LOC4(LOC5.X.OUTTOL>.00)))))
      COMMENT/REPT,PART REJECTED!!
      END_IF/

      another idea??
      Kalepito
      Join the dark side we have beer
      pcdmis4.3mr1

      Comment


      • #4
        See the following thread for a basic script that will search a program and report oot's.

        Section on code



        B&S CHAMELEON/PCDMIS CAD++ V2011

        There are no bugs, only "UNDOCUMENTED ENHANCEMENTS!"

        sigpic

        Comment


        • #5
          Isn't there a setting in the report that says "Only print out of tolerance" or something like that?
          PC-DMIS CAD++ 2o23.1 SP1

          Comment


          • #6
            Originally posted by vpt.se View Post
            Isn't there a setting in the report that says "Only print out of tolerance" or something like that?

            Yes, right click on a blank area of your report, click on "Edit Objects", under dimensions select "Out of Tolerance Only" and click OK.

            Machining had me make a program for them once that would show how much to offset the "G" code for each out of tolerance feature. God was that a pain in my A$$.
            Last edited by DeWain Hodge; 10-04-2012, 08:07 AM.
            DeWain Hodge

            Comment

            Related Topics

            Collapse

            Working...
            X