Points from a circle?

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

  • Points from a circle?

    Is there a way to get the points from an Auto Circle?

  • #2
    Code:
     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
    Just pick the points (number) and plug them in to the [#].
    Do this for each point you want to 'pull' from the circle.

    Comment


    • #3
      or you can assign an array of hits and go from there.
      Code:
      ASSIGN/V2 = SCAN1.HIT[1..SCAN1.NUMHITS].XYZ
      Hit F1 and click on "Search" tab. Type in "Hit Arrays" for detailed info.
      Last edited by louisd; 04-02-2019, 03:30 PM.

      Comment


      • Darrollh
        Darrollh commented
        Editing a 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.

      • anthony.alfaro
        anthony.alfaro commented
        Editing a comment
        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.)

    • #4
      Originally posted by brian.freeman View Post
      Code:
       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
      Just pick the points (number) and plug them in to the [#].
      Do this for each point you want to 'pull' from the circle.
      You have to create each point as a GENERIC POINT. You also need to leave the labels for each circle as CIR1, CIR2 and so on. When constructing generic features you need to leave things in the PC-DMIS syntax. Here is a sample code from a (4) Point 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


      • #5
        Originally posted by mdobb829 View Post

        You have to create each point as a GENERIC POINT...
        That depends on what you want to do with them - you can for example dimension the location of a single hit just by changing the reference in the Edit Window

        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
        Change to
        Code:
        DIM LOC3= LOCATION OF POINT CIR1.HIT[3]  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

        There's also the CIR1.NUMHITS which can be quite useful.

        AndersI
        SW support - Hexagon Metrology Nordic AB

        Comment


        • #6
          Alternatively, there's an option in AutoCircle called "To Points" which will create all the hits as individual point features. From there you could construct the circle.

          Comment


          • #7
            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, 10:18 AM.
            sigpic
            amor patriae nostra lex

            Comment

            Related Topics

            Collapse

            Working...
            X