Is there a way to get the points from an Auto Circle?
Points from a circle?
Collapse
X
-
or you can assign an array of hits and go from there.
Code:ASSIGN/V2 = SCAN1.HIT[1..SCAN1.NUMHITS].XYZ
Last edited by louisd; 04-02-2019, 04:30 PM.
Comment
-
I am not sure about the earlier versions or I could be way off base but, I clicked something in setting in 2019 and I was able to see and extract the points I needed without any additional coding.
-
Darroll is correct. with the later versions of PCD you can do a constructed point an select individual hits from a circle feature (or any other feature for that matter.)
-
-
Originally posted by brian.freeman View PostCode:cir1.hit[1].tx, cir1.hit[1].ty,cir1.hit[1].tz
Code:cir1.hit[1].x, cir1.hit[1].y,cir1.hit[1].z
Do this for each point you want to 'pull' from the circle.
Code:F1 =GENERIC/POINT,DEPENDENT,CARTESIAN,$ NOM/XYZ,<CIR1.HIT[1].TX,CIR1.HIT[1].TY,CIR1.HIT[1].TZ>,$ MEAS/XYZ,<CIR1.HIT[1].X,CIR1.HIT[1].Y,CIR1.HIT[1].Z>,$ NOM/IJK,<0,0,1>,$ MEAS/IJK,<0,0,1> F2 =GENERIC/POINT,DEPENDENT,CARTESIAN,$ NOM/XYZ,<CIR1.HIT[2].TX,CIR1.HIT[2].TY,CIR1.HIT[2].TZ>,$ MEAS/XYZ,<CIR1.HIT[2].X,CIR1.HIT[2].Y,CIR1.HIT[2].Z>,$ NOM/IJK,<0,0,1>,$ MEAS/IJK,<0,0,1> F3 =GENERIC/POINT,DEPENDENT,CARTESIAN,$ NOM/XYZ,<CIR1.HIT[3].TX,CIR1.HIT[3].TY,CIR1.HIT[3].TZ>,$ MEAS/XYZ,<CIR1.HIT[3].X,CIR1.HIT[3].Y,CIR1.HIT[3].Z>,$ NOM/IJK,<0,0,1>,$ MEAS/IJK,<0,0,1> F4 =GENERIC/POINT,DEPENDENT,CARTESIAN,$ NOM/XYZ,<CIR1.HIT[4].TX,CIR1.HIT[4].TY,CIR1.HIT[4].TZ>,$ MEAS/XYZ,<CIR1.HIT[4].X,CIR1.HIT[4].Y,CIR1.HIT[4].Z>,$ NOM/IJK,<0,0,1>,$ MEAS/IJK,<0,0,1>
Marty Dobson
Director of Quality
http://www.linkedin.com/in/mjdobson
PC-DMIS CAD V4.2 MR1 & V2011
PH10MQ
TP200
Comment
-
Originally posted by mdobb829 View Post
You have to create each point as a GENERIC POINT...
Original
Code: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 124.000 0.100 -0.100 124.000 0.000 0.000 ----#---- Y 50.000 0.100 -0.100 50.000 0.000 0.000 ----#---- Z -15.000 0.100 -0.100 -15.000 0.000 0.000 ----#---- D 44.000 0.100 -0.100 44.000 0.000 0.000 ----#---- END OF DIMENSION LOC1
Code:DIM LOC3= LOCATION OF POINT CIR1[COLOR=#FFA500][B].HIT[3] [/B][/COLOR] UNITS=MM ,$ GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO AX NOMINAL +TOL -TOL MEAS DEV OUTTOL X 113.000 0.100 -0.100 113.000 0.000 0.000 ----#---- Y 30.947 0.100 -0.100 30.947 0.000 0.000 ----#---- Z -15.000 0.100 -0.100 -15.000 0.000 0.000 ----#---- D 0.000 0.100 -0.100 0.000 0.000 0.000 ----#---- END OF DIMENSION LOC1 [LEFT][COLOR=#000000][FONT=Arial][SIZE=12px][/SIZE][/FONT][/COLOR][/LEFT]
There's also the CIR1.NUMHITS which can be quite useful.
AndersI
SW support - Hexagon Metrology Nordic AB
Comment
-
If you have already measured circle you can take the points out of it as a Construction Points (see picture below):
(It is in v.2018, I'm not sure if before also)
AUTOCIRCLE.png
Code:AUTO CIRCLE=FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,OUT,LEAST_SQR THEO/<0,0,0>,<0,0,1>,50,0 ACTL/<0,0,0>,<0,0,1>,50,0 TARG/<0,0,0>,<0,0,1> START ANG=0,END ANG=360 ANGLE VEC=<0,0,1> DIRECTION=CCW SHOW FEATURE PARAMETERS=NO SHOW CONTACT PARAMETERS=YES NUMHITS=14,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 P1 =FEAT/POINT,CARTESIAN,NO THEO/<5.563,24.3732,5>,<0,0,1> ACTL/<5.563,24.3732,5>,<0,0,1> CONSTR/POINT,CAST,AUTO CIRCLE.HIT[4..4] P2 =FEAT/POINT,CARTESIAN,NO THEO/<15.5872,19.5458,5>,<0,0,1> ACTL/<15.5872,19.5458,5>,<0,0,1> CONSTR/POINT,CAST,AUTO CIRCLE.HIT[3..3] P3 =FEAT/POINT,CARTESIAN,NO THEO/<25,0,5>,<0,0,1> ACTL/<25,0,5>,<0,0,1> CONSTR/POINT,CAST,AUTO CIRCLE.HIT[1..1] P4 =FEAT/POINT,CARTESIAN,NO THEO/<15.5872,-19.5458,5>,<0,0,1> ACTL/<15.5872,-19.5458,5>,<0,0,1> CONSTR/POINT,CAST,AUTO CIRCLE.HIT[13..13]
Last edited by johnnyjohnson; 04-03-2019, 11:18 AM.sigpic
amor patriae nostra lex
Comment
Related Topics
Collapse
-
by DeWain HodgeI have a part with a groove diameter that is interupted by two pockets 180° apart so I can only measure about 100° on each side of the pocket. What...
-
Channel: PC-DMIS for CMMs
03-12-2008, 10:21 AM -
-
by AuRulesWhat is the code look like if you have 2 features and you are trying to bulid 1 from the individual points.
Example Only Circ1.pnt[1],etc,etc,,...-
Channel: PC-DMIS for CMMs
03-27-2007, 02:03 PM -
-
by RmhowardI am measuring a cross section without a CAD model to Reverse Engineer a bearing profile. I need help getting the PC Dmis Line code to take all of the...
-
Channel: PC-DMIS for CMMs
05-01-2013, 12:46 PM -
-
by dph51I wrote a WHILE END/WHILE sectoin of code to measure to measure a series of points. I run the program and each pnt[v11] is measured as the loop is run....
-
Channel: PC-DMIS for CMMs
12-13-2008, 10:36 AM -
-
by object32I have a program that takes a point on a cylinder every 10 degrees and constructs circles out of those points. Then I have to extract all of the values...
-
Channel: PC-DMIS for CMMs
08-28-2009, 11:28 AM -
Comment