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!
Same Program for different parts with only diameter difference
Collapse
X
-
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
-
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
-
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 recallLast edited by Douglas; 01-08-2020, 02:41 PM.
-
Related Topics
Collapse
-
by NortonI have a diameter that is very slightly tapered but is square within CAD. From the top surface, I measure the diameter every 0.5mm measuring about 10...
-
Channel: PC-DMIS Code Samples
12-21-2016, 03:07 PM -
-
When issues come up, they come up.
Back to the issue of trying to determine form. The diameter we are measuring has one value for the basic...-
Channel: PC-DMIS for CMMs
05-04-2006, 03:15 PM -
-
Got something funny going on with my diameter measurements. I was wondering if someone could give me some insight. I am measuring a part thats outer diameter...
-
Channel: PC-DMIS for CMMs
11-06-2014, 10:41 AM -
-
by mrollings53I opened an old program created in April 2019 that managed to screw up something. The program had the point size diameter set to .005". I changed...
-
Channel: PC-DMIS for CMMs
04-14-2022, 03:30 PM -
-
by threeDI simply want to report the calculated diameter of a measured circle (or a cylinder). Can someone help me with that?
New guy running V 2015.1-
Channel: PC-DMIS for CMMs
02-09-2016, 05:28 PM -
Comment