hexagon logo

construct circle from points in loop

Good Morning All

I have punch with gear inside (35 teeth to make math easier) and I need to measure larger diameter.I made loop which takes points between teeth but i have no idea how to construct circle. CMM takes points, I can see them on CAD model but not on any list - just point 1. I would be grateful for any suggestions.

MOVE/CLEARPLANE
V1 =LOOP/START,ID=YES,NUMBER=35,START=1,SKIP=,
OFFSET:XAXIS=0,YAXIS=0,ZAXIS=0,ANGLE=10.286
PNT1 =FEAT/CONTACT/VECTOR POINT/DEFAULT,POLAR
THEO/<32.754,270,-2>,<0,1,0>
ACTL/<32.752,269.998,-2>,<0,1,0>
TARG/<32.754,270,-2>,<0,1,0>
SNAP=NO
SHOW FEATURE PARAMETERS=NO
SHOW CONTACT PARAMETERS=YES
AVOIDANCE MOVE=BOTH,DISTANCE=5
SHOW HITS=NO
LOOP/END

Thanks,
Ewa D.
Parents
  • Looping 4 times
    v1         =loop/start,id=yes,number=4,start=1,skip=,
                  offset:xaxis=0,yaxis=0,zaxis=0,angle=90
    pnt2         =feat/contact/vector point/default,cartesian
                  theo/<1.1909,0,-0.1>,<-1,0,0>
                  actl/<1.1909,0,-0.1>,<-1,0,0>
                  targ/<1.1909,0,-0.1>,<-1,0,0>
                  snap=no
                  show feature parameters=no
                  show contact parameters=yes
                    avoidance move=no,distance=0.3937
                  show hits=no
                loop/end
    cir7       =feat/circle,cartesian,out,least_sqr,no
                theo/<0,0,-0.1>,<0,0,1>,2.3818
                actl/<0,0,-0.1>,<0,0,1>,2.3818
                constr/circle,bf,2d,[COLOR=#FF0000]pnt2[1],pnt2[2],pnt2[3],pnt2[4][/COLOR],,
                outlier_removal/off,3
                filter/off,upr=0
    

    just keep adding pnt<num>[index] until you reach all 35.
  • I was tempted to try this ^^^^ after I posted but failed to go back and give it a try as I was not sure if it would have worked or not. Thanks for posting @Krisj!!! How about you make it a real post, instead of a comment, so others will run right into it, it's a huge time saver. Way better than typing up pnt1[1] thru pnt1[35]!!!!
Reply
  • I was tempted to try this ^^^^ after I posted but failed to go back and give it a try as I was not sure if it would have worked or not. Thanks for posting @Krisj!!! How about you make it a real post, instead of a comment, so others will run right into it, it's a huge time saver. Way better than typing up pnt1[1] thru pnt1[35]!!!!
Children
No Data