Don't understand why this wont work....

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

  • Don't understand why this wont work....

    Solved:

    Ended up removing the autolines and replacing them with autopoints that got constructed into lines. PC DMIS liked that better.

    __________________________________________________ __________________________________________________ ___________________________________

    PC DMIS CAD 2019 R1..
    The code below won't work. Keeps telling me the features for my PNT_6_1 do not converge. For the life of me I can't figure out why. I measure geometry like this all of the time and it always works.

    I'm trying to measure a line, then measure the radius with "fixed rad", then origin to the fixed rad, then measure the actual rad at X0Y0Z0, then put a point at the intersection of the rad & line, then copy & paste that with pattern five times, then construct the six intersection points into my diameter. HELP =(

    pic.PNG

    Code:
    WORKPLANE/YMINUS
                MOVE/CLEARPLANE
    LIN4       =FEAT/CONTACT/LINE/DEFAULT,CARTESIAN,BOUNDED
                THEO/<2.2689,0,0.22>,<2.0995,0,0.22>,<-1,0,0>,<0,0,1>,<1,0,0>,0.1694
                ACTL/<2.2689,0,0.22>,<2.0995,0,0.22>,<-1,0,0>,<0,0,1>,<1,0,0>,0.1694
                TARG/<2.2689,0,0.22>,<2.0995,0,0.22>,<-1,0,0>,<0,0,1>,<1,0,0>
                SHOW FEATURE PARAMETERS=NO
                SHOW CONTACT PARAMETERS=NO
    CIR2       =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,IN,FIXED_RAD
                THEO/<1.9747,0,0.302>,<0,-1,0>,0.25
                ACTL/<1.9747,0,0.302>,<0,-1,0>,0.25
                TARG/<1.9747,0,0.302>,<0,-1,0>
                START ANG=270,END ANG=319.0045
                ANGLE VEC=<1,0,0>
                DIRECTION=CCW
                SHOW FEATURE PARAMETERS=NO
                SHOW CONTACT PARAMETERS=NO
    A10        =ALIGNMENT/START,RECALL:A9_LOC,LIST=YES
                  ALIGNMENT/TRANS,XAXIS,CIR2
                  ALIGNMENT/TRANS,ZAXIS,CIR2
                ALIGNMENT/END
    RAD_4_1    =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,IN,LEAST_SQR
                THEO/<0,0,0>,<0,-1,0>,0.25
                ACTL/<0,0,0>,<0,-1,0>,0.25
                TARG/<0,0,0>,<0,-1,0>
                START ANG=270,END ANG=319.0045
                ANGLE VEC=<1,0,0>
                DIRECTION=CCW
                SHOW FEATURE PARAMETERS=NO
                SHOW CONTACT PARAMETERS=NO
    PNT_6_1    =FEAT/POINT,CARTESIAN,NO
                THEO/<0.0943,0,-0.082>,<-1,0,0>
                ACTL/<0.0943,0,-0.082>,<-1,0,0>
                CONSTR/POINT,PIERCE,LIN4,RAD_4_1
    A26        =ALIGNMENT/START,RECALL:A9_LOC,LIST=YES
                  ALIGNMENT/ROTATE_OFFSET,60,ABOUT,ZPLUS
                ALIGNMENT/END
    Last edited by measurestuff413; 04-18-2019, 12:15 PM.

  • #2
    Fun fact:

    It worked fine offline when I wrote the program.

    I ran it ONLINE out on the floor, PC DEMON gave me the middle finger, and now it won't let me do it offline anymore.

    Comment


    • #3
      Another fun fact:

      Just tried it with autovectorpoints & constructing lines..as opposed to using autolines...and it worked. WHYYY

      Comment


      • KIRBSTER269
        KIRBSTER269 commented
        Editing a comment
        So you can't remember your password for your other profile? wasn't it "ILuvHarryMEN"?

      • measurestuff413
        measurestuff413 commented
        Editing a comment
        "iLuvHairyM3N" was my OLD password..pretty messed up that you even got that close though..

    • #4
      autolines suck
      sigpic
      Originally posted by AndersI
      I've got one from September 2006 (bug ticket) which has finally been fixed in 2013.

      Comment


      • KIRBSTER269
        KIRBSTER269 commented
        Editing a comment
        agreed. how can something so simple as a line be so hard to accomplish. click, click, "WTF???"

      • measurestuff413
        measurestuff413 commented
        Editing a comment
        like what the actual f*ck is wrong with this software *facepalm*

    • #5
      You can't construct an intersect point from line-arc that doesn't actually intersect.
      And you can't pierce into something that isn't measured past that actual intersect either.

      Try constructing little planes instead of the lines.
      Then, pierce the plane with the circle.
      That should do what you need.
      You might need to flip the vector direction of the circles to get the pierce point on the correct side of the radius centroid.

      Comment


      • #6
        Often the line doesn't actually pierce the circle (it should hit it tangentially but obviously it can touch, segment or miss.

        I construct a line perp to the measured line passing through circle, then point from intersection of two lines in situations like this.
        Automettech - Automated Metrology Technology

        Comment


        • #7
          KIRBSTER269
          agreed. how can something so simple as a line be so hard to accomplish.
          I disagree with you on this point...
          A line is very simple in 2D (y=ax+b), but doesn't have a single equation in 3D.
          In 2D, a is the slope, and b is the vertical coordinate where the line intersect the y axis.

          In 3D, ax+by+cz+d=0 is the equation of a plane, where a,b and c are the components of the plane vector, and d the distance from the origin along this vector.
          In PC-DMIS, you could ASSIGN/D=DOT(PL1.XYZ,PL1.IJK) (PL1.XYZ is also the components of the vector between origin and PL1 centroid)

          Calculating a 3D line needs intersecting 2 planes.
          The easiest way to calculate a 3D line from some points / hits is projecting them on the right planes, then calculate 2D line to obtain 2 coordinates in the plane at the origin, calculate the cross product of plane vectors to obtain the vector of the line.
          If you have more than 2 points, you have in addition to calculate each 2D lines with the right algo (least square is easy, others more complicated !)

          I hope you're now agree to say that lines are not so simple...

          Comment


          • JEFMAN
            JEFMAN commented
            Editing a comment
            measurestuff413 : here it's too late to eat crepes... And I prefer "galettes de sarrasin" (buckwheat pancakes), made in Brittany, or that I make myself

          • vpt.se
            vpt.se commented
            Editing a comment
            I understand everything above the line with "A line is very..."...



          • KIRBSTER269
            KIRBSTER269 commented
            Editing a comment
            you my friend, are a mental case

        • #8
          Mad props for editing the thread to put the solution at the top!

          Comment

          Related Topics

          Collapse

          Working...
          X