construct circle from points in loop

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

  • 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.
    Last edited by ewadora; 07-26-2018, 11:48 AM.

  • #2
    I don't know how to see your points, but am interested in the answer. If I had that issue, I'd likely copy the first point, then "paste with pattern" to make the rest. That way, I know they would be out where I could see/ find them. Looking forward to reading about other options!

    Comment


    • #3
      Wrong answer hold up. Miss read the question
      (In Memory of my Loving wife, "Ronda" who I lost March 7, 2016. I love you baby.)
      They say "Nobody's Perfect." I must be Nobody.

      Comment


      • Kp61dude!
        Kp61dude! commented
        Editing a comment
        beat ya!!! vvvvvvvvvvv

    • #4
      Looping 4 times
      Code:
      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,pnt2[1],pnt2[2],pnt2[3],pnt2[4],,
                  outlier_removal/off,3
                  filter/off,upr=0
      just keep adding pnt<num>[index] until you reach all 35.
      Last edited by Kp61dude!; 07-26-2018, 12:05 PM.
      PcDmis 2015.1 SP10 CAD++
      Global 7-10-7 DC800S

      Comment


      • KIRBSTER269
        KIRBSTER269 commented
        Editing a comment
        good I don't have to post LOL. You got it

      • Krisj
        Krisj commented
        Editing a comment
        Code:
        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,pnt2[1..4],,
                    outlier_removal/off,3
                    filter/off,upr=0

        Just to tack on, you can do this instead of each point individually
        Last edited by Krisj; 07-26-2018, 07:21 PM.

      • Kp61dude!
        Kp61dude! commented
        Editing a comment
        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]!!!!

    • #5
      Unfortunately it does not work. PC-DMIS wouldn't construct BF circle from 1 point, it constracted cast circle, I have made changes manually and added points as advised but when I run program at the end of execution i get construction error. And it measures 1mm, i tired to enter 65 (mine dia), no difference





      ‚Äč
      Attached Files

      Comment


      • #6
        Construct it from that one point as cast then in the Edit window change cast to bf (best fit), you will see an error message...ignore it. Change pnt<num> to pnt<num>[index], you will get another and another error message until you have 3 pnt<num>[index] in there (constructing a circle is 3 points minimum). You will stop seeing the errors after the 3rd point, continue typing in your pnt<num>[index]

        In other words don't use the construct command window to handle this one, Edit window editing only. Well besides creating the initial constructed circle to work with, it can be constructed from anything (legal) just to populate the PcD code in the Edit Window and avoid any error pop-up.
        Last edited by Kp61dude!; 07-26-2018, 02:58 PM.
        PcDmis 2015.1 SP10 CAD++
        Global 7-10-7 DC800S

        Comment


        • #7
          For some reason it doesn't accept single points like pnt1[1],pnt1[10],pnt1[20],, but works with pnt1[1..35],,

          thanks


          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,-3>,<0,1,0>
          ACTL/<32.752,270,-2.999>,<0,1,0>
          TARG/<32.754,270,-3>,<0,1,0>
          SNAP=NO
          SHOW FEATURE PARAMETERS=NO
          SHOW CONTACT PARAMETERS=YES
          AVOIDANCE MOVE=BOTH,DISTANCE=5
          SHOW HITS=NO
          LOOP/END
          CIR4 =FEAT/CIRCLE,CARTESIAN,IN,LEAST_SQR,NO
          THEO/<0,0,-3>,<0,0,1>,65.508
          ACTL/<-0.002,0.003,-3>,<0,0,1>,65.511
          CONSTR/CIRCLE,BF,2D,PNT1[1..35],,
          OUTLIER_REMOVAL/OFF,3
          FILTER/OFF,UPR=0
          DIM LOC1= LOCATION OF CIRCLE CIR4 UNITS=MM ,$
          GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
          AX NOMINAL +TOL -TOL MEAS DEV OUTTOL
          D 65.508 0.005 0.005 65.511 0.003 0.000 --------------#---
          END OF DIMENSION LOC1

          Comment


          • #8
            PC-DMIS is not consistent - in some places it only accepts ranges, in others single points. If you need to reference a single point and PNT1[1] gives an error, try PNT1[1..1]
            AndersI
            SW support - Hexagon Metrology Nordic AB

            Comment

            Related Topics

            Collapse

            Working...
            X