Same Program for different parts with only diameter difference

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

  • Same Program for different parts with only diameter difference

    I am looking to write a program that allows the operator to input a diameter into an input box at the start of the program and based on this will allow the program to measure the correct diameter. Basically the parts are all the same, the only dimension that changes would be the diameter of this one feature. Thanks for the help!

  • #2
    I use variables to control the size of a feature when I’m Programming for a family of parts. Or you can build a seed program where you can type in a certain part number and it will pull the specific program. There’s also a guy whom I worked with on here a few years ago and he had an app that he built to do that thing you’re speaking of.
    Darroll
    2018R2

    Comment


    • #3
      Code:
      C1         =COMMENT/INPUT,NO,FULL SCREEN=NO,
                  Enter hole size
                  ASSIGN/[COLOR=#0000CD]HOLESIZE[/COLOR]=C1.INPUT
      CIR1       =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,OUT,LEAST_SQR
                  THEO/<0,0,0>,<0,0,1>,[COLOR=#0000CD]HOLESIZE[/COLOR],0
                  ACTL/<0,0,0>,<0,0,1>,25,0
                  TARG/<0,0,0>,<0,0,1>
                  START ANG=0,END ANG=360
                  ANGLE VEC=<-1,0,0>
                  DIRECTION=CCW
                  SHOW FEATURE PARAMETERS=NO
                  SHOW CONTACT PARAMETERS=YES
                    NUMHITS=7,DEPTH=5,PITCH=0
                    SAMPLE METHOD=SAMPLE_HITS
                    SAMPLE HITS=0,SPACER=0
                    AVOIDANCE MOVE=BOTH,DISTANCE=10
                    FIND HOLE=DISABLED,ONERROR=NO,READ POS=NO
                  SHOW HITS=NO
      DIM LOC1= LOCATION OF CIRCLE CIR1  UNITS=MM ,$
      GRAPH=OFF  TEXT=OFF  MULT=10.00  OUTPUT=BOTH  HALF ANGLE=NO
      AX    NOMINAL       +TOL       -TOL       MEAS        DEV     OUTTOL
      X        0.000      0.050      0.050      0.000      0.000      0.000 ----#----
      Y        0.000      0.050      0.050      0.000      0.000      0.000 ----#----
      D    [COLOR=#0000CD]HOLESIZE[/COLOR]      0.050      0.050     25.000      0.000      0.000 ----#----
      END OF DIMENSION LOC1

      However, like Darrollh said, I'd prefer to have to operator select the part and use variables to control the hole size. Less chance of an expensive mistake!
      Last edited by NinjaBadger; 01-08-2020, 04:49 AM.
      Applications Engineer
      Hexagon UK

      Comment


      • Douglas
        Douglas commented
        Editing a comment
        will the dimension nominal also change with the feature nominal when you do this? Anything I've used variables for is not on the report when I think of it...

        I do lots of stuff like take hits on groove walls to probe the diameter a certain distance from them, but I never actually report what has the variable that I can recall
        Last edited by Douglas; 01-08-2020, 02:41 PM.

    Related Topics

    Collapse

    Working...
    X