How make formula of distance

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

  • How make formula of distance

    Hi every one.
    I am new comer, I want to calculate min distance between 2 circle as attachment picture, can you give me solution?
    Thank you.!

    Optiv Classic 443
    PCDMIS Pro 2017 R1 Circle Distance.JPG
    Optiv Classic 443
    PCDMIS 2017 R1

  • #2
    Giving it a shot...

    x = distance between both circles centerpoints

    "Distance?" = ABS((x + Circle1.radius) - Circle2.radius)

    JEFMAN
    PC-DMIS CAD++ 2o18 R1 SP3

    Comment


    • #3
      Thank you, vpt.se
      After calculate, how to show result in inspection report.?
      Optiv Classic 443
      PCDMIS 2017 R1

      Comment


      • vpt.se
        vpt.se commented
        Editing a comment
        Create a generic feature with the "Distance?" value as one of the measured values, then dimension the generic feature accordingly.

    • #4
      That will give a distance assuming the circles are perfectly round. If you're actually looking for "material thickness" examples can be found in other threads, for example https://www.pcdmisforum.com/forum/pc...nts#post417827
      AndersI
      SW support - Hexagon Metrology Nordic AB

      Comment


      • vpt.se
        vpt.se commented
        Editing a comment
        Yes, as always it is dependent on the application and the caveats associated with them.

    • #5
      insert->dimension->Keyin

      then copy and paste fomula as MEAS value

      CIRCLE1 =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,OUT,LEAST_SQR
      THEO/<0,0,0>,<0,0,1>,20,0
      ACTL/<0,0,0>,<0,0,1>,20,0
      TARG/<0,0,0>,<0,0,1>
      START ANG=0,END ANG=0
      ANGLE VEC=<1,0,0>
      DIRECTION=CCW
      SHOW FEATURE PARAMETERS=NO
      SHOW CONTACT PARAMETERS=YES
      NUMHITS=7,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
      CIRCLE2 =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,OUT,LEAST_SQR
      THEO/<10,0,0>,<0,0,1>,23,0
      ACTL/<10,0,0>,<0,0,1>,23,0
      TARG/<10,0,0>,<0,0,1>
      START ANG=0,END ANG=0
      ANGLE VEC=<1,0,0>
      DIRECTION=CCW
      SHOW FEATURE PARAMETERS=NO
      SHOW CONTACT PARAMETERS=YES
      NUMHITS=7,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
      DIM LOC1= KEYED IN DIMENSION OUTPUT=BOTH
      AX NOMINAL +TOL -TOL MEAS DEV OUTTOL
      M 8.500 0.010 -0.010 ABS((DIST3D({CIRCLE1},{CIRCLE2}) + CIRCLE1.RADIUS) - CIRCLE2.RADIUS) 0.000

      Comment


      • vpt.se
        vpt.se commented
        Editing a comment
        A warning, if these circles are placed on different heights you will get a longer distance as you are using DIST3D.

      • xuantam91
        xuantam91 commented
        Editing a comment
        Thank you for support,
        I got it.!

    • #6
      You might try something like.......

      If the circles are of sufficient form and at the same height...........

      Create a line (lin1) between the 2 circles

      Rotate to the line

      Translate (x,y) to the smaller circle

      Create CAST line (lin2) from lin1

      create pierce points from cir2, lin2 and cir1,lin2

      create distance dimension between pierce points


      B&S CHAMELEON/PCDMIS CAD++ V2011

      There are no bugs, only "UNDOCUMENTED ENHANCEMENTS!"

      sigpic

      Comment


      • #7
        thank you very much for supporting.

        Some time, when I programing or running measuring, my software automatic close and display dialog to send error to hexagon.

        can you give me some advise.

        I use Optiv Classic 443, PCDMIS 2017 Pro R1, Windows 10 pro 64bit.
        Optiv Classic 443
        PCDMIS 2017 R1

        Comment


        • #8
          Make sure your computer is fully updated (windows, graphics etc.) and is powerful enough.
          PC-DMIS CAD++ 2o18 R1 SP3

          Comment


          • #9
            ^^^^ this!
            Also.......filter settings, edge detection method & focus method will take a big bite out of your hardware. unfortunately, there is no simple recipe........

            Comment


            • InspectorJester
              InspectorJester commented
              Editing a comment
              I've had similar issues in the past due to sub-par hardware; every so often, especially during a focus, it would just crash and die.
              Lol!
          Working...
          X