Selecting points on scan in a certain section

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

  • Selecting points on scan in a certain section

    Hi all

    A quick question, How do i select points on a scan in between 2 points but not selecting the point name features them selves. Very similar to line and circle scan segment


    example - i want to select all the points between points "pp1 and pp2" and give out the max and min PR. I know how to output the max and min and also how to output the points by feature name, but i want PCdmis to select all points automatically between the 2 points as points within the segment can vary part to part.

    Capture.PNG

    will this need to be an if statement of some sort?

    Thanks in advance.

  • #2
    Code:
    Create a feature set, select your scan (in this case SCN1)
    Replace the "SCN1" in the created feature set with the code snippet below
    
    SCN1.HIT[PP1..PP2]
    Replace the PP1 and PP2 above with the scans actual hit numbers, start with the low hit number (PP1) to the high hit number (PP2). SCN1 should be replaced by your scan name.
    PC-DMIS CAD++ 2o19 R1 SP11

    Comment


    • #3
      I would try this :
      Code:
      ASSIGN/V1=PP1.PA
      ASSIGN/V2=PP2.PA
      ASSIGN/PI=ACOS(-1)
      ASSIGN/V3=ATAN(SCN1.HIT[1..SCN1.NUMHITS].Y/SCN1.HIT[1..SCN1.NUMHITS].X)
      ASSIGN/V4=((SCN1.HIT[1..SCN1.NUMHITS].X/ABS(SCN1.HIT[1..SCN1.NUMHITS].X))-1)*(-PI/2)
      ASSIGN/V5=(((V3+V4)-ABS(V3+V4))/((V3+V4)-ABS(V3+V4)))*2*PI
      ASSIGN/P_A=RAD2DEG(V3+V4+V5)
      ASSIGN/START_ANGLE=MININDEX(ABS(P_A-V1))
      ASSIGN/END_ANGLE=MININDEX(ABS(P_A-V2))
      IF START_ANGLE>END_ANGLE
      ASSIGN/START_ANGLE=MININDEX(ABS(P_A-V2))
      ASSIGN/END_ANGLE=MININDEX(ABS(P_A-V1))
      END IF
      Then create a feature set with SCN1.HIT[START_ANGLE..END_ANGLE]




      https://www.pcdmisforum.com/forum/pc...e-of-scan-hits

      Comment


      • #4
        Originally posted by vpt.se View Post
        Code:
        Create a feature set, select your scan (in this case SCN1)
        Replace the "SCN1" in the created feature set with the code snippet below
        
        SCN1.HIT[PP1..PP2]
        Replace the PP1 and PP2 above with the scans actual hit numbers, start with the low hit number (PP1) to the high hit number (PP2). SCN1 should be replaced by your scan name.


        Thanks for the reply, the only issue with this is that it hard wires the point feature into the scan. In theory you can have more or less points in that segment between pp1 and pp2 due to part variability as points pp1 and pp2 are pierce points on the tangent diameter.

        I'm looking for a way for PCdmis to select all points between sections pp1 and pp2 automatically depending on its position and not by its feature name

        Thanks

        Comment


        • vpt.se
          vpt.se commented
          Editing a comment
          Then maybe JEFMAN s suggestion is the way to go.

      • #5
        Hy Everyone!

        How could i create a circle from 2 scanned semicircle, without not selecting all the points themselves?


        Thanks.

        Comment


        • #6
          Originally posted by BaliDani View Post
          Hy Everyone!

          How could i create a circle from 2 scanned semicircle, without not selecting all the points themselves?


          Thanks.
          Take a look at this post https://www.pcdmisforum.com/forum/pc...355#post470355

          Another way to do it would be to create a pointcloud from your two scans / features and then construct a new circle from the COP. We added some of the pointcloud functionality to CAD++ in 2015 if my memory serves me correctly. Prior to that it was a purchasable additional option.
          Neil Challinor
          PC-DMIS Product Owner

          T: +44 870 446 2667 (Hexagon UK office)
          E: [email protected]

          Comment

          Related Topics

          Collapse

          Working...
          X