reporting shift from best fit alignment?

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

  • reporting shift from best fit alignment?

    Good Morning,
    I have a program that uses a best fit alignment for a surface profile. Xact measure is having a really hard time with the unusual datum structure so i went with a best fit alignment. The QE wants to see the shift reported out from the best fit. Is this possible to do? I've been searching through the threads and nothing has come up in the first couple pages Thanks!!

  • #2
    ASSIGN/MY_COMMAND=GETCOMMAND("Best Fit 2D Alignment","UP",1)
    ASSIGN/MY_FIELD=GETTEXT("Angle Offset",1,"MY_COMMAND")
    COMMENT/OPER,NO,FULL SCREEN=NO,AUTO-CONTINUE=NO,
    MY_FIELD
    Automettech - Automated Metrology Technology

    Comment


    • #3
      Thinking about it you don't need to use GetCommand and the command has an ID

      So if your alignment is called A1...

      ASSIGN/MY_FIELD=GETTEXT("Angle Offset",1,{A1})
      COMMENT/OPER,NO,FULL SCREEN=NO,AUTO-CONTINUE=NO,
      MY_FIELD
      Automettech - Automated Metrology Technology

      Comment


      • #4
        Well, that didn't quite work out. I'm assuming that the "Best Fit 2D Alignment" would be the name of my alignment? I'm also looking to show the translation in X and Y on the report with the profile from the best fit alignment.

        Comment


        • #5
          and i didnt see that next response in time lol. I'll give it a try and see what happens!

          Comment


          • #6
            Best Fit 2d Alignment is the command type.

            To see command types right click in the edit window and Change Pop Up Display to Command 'Information' then when you hover the mouse over a command in the edit window it will display command information.

            Similarly, right click and Change Pop Up Display to Data Type Information, then hover the mouse over the various fields of a command to get the data type descriptions.

            For a best fit alignment you have three 'Offset' and one 'Angle Offset'.

            When you have more than one data type of the same type (i.e. Offset) you change the index value in the GetCommand function

            ASSIGN/MY_FIELD=GETTEXT("Offset",1,{A1}) for X
            ASSIGN/MY_FIELD=GETTEXT("Offset",2,{A1}) for Y
            ASSIGN/MY_FIELD=GETTEXT("Offset",3,{A1}) for Z
            Automettech - Automated Metrology Technology

            Comment


            • #7
              Or, you could construct a Point at the origin before doing the bestfit, and then report the xyz of that point after the BF.
              AndersI
              SW support - Hexagon Metrology Nordic AB

              Comment


              • jtrofatter
                jtrofatter commented
                Editing a comment
                If i constructed a set out of a group of points, would that be the origin point i want to use? Or construct an origin point of the alignment then report the XYZ again after the BF?

              • AndersI
                AndersI commented
                Editing a comment
                Construct an Origin Point from the alignment

            • #8
              Thank you guys! this was super helpful. I always appreciate this forum so much!

              Comment

              Related Topics

              Collapse

              Working...
              X