Access to element values inside position

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

  • Access to element values inside position

    Is it possible to have access to a value of an element inside a position? If yes, how can I do this. Example: Screenshot 2019-07-15 21.30.45.png

    I can get value of the first element without any problems : ZUWEISEN/V1=STR(BL4E5_1.PA.MEAS) = -4.010
    I have no idea how I get the next or all other values? Can anybody help?


  • #2
    you should be able to extract those values on an feature-individual basis:

    ZUWEISEN/V2=STR(GEW_M16_318_2.PA.MEAS) = -64.000

    if not that, maybe:

    ZUWEISEN/V3=STR(BL4E5_1[2].PA.MEAS) = -64.000

    I have not tried this so i'm not 100% sure it will work. I don't have any programs that use xact tpos dimensions for multiple features.
    Ex-Hex

    Comment


    • #3
      Originally posted by anthony.alfaro View Post
      you should be able to extract those values on an feature-individual basis:

      ZUWEISEN/V2=STR(GEW_M16_318_2.PA.MEAS) = -64.000

      if not that, maybe:

      ZUWEISEN/V3=STR(BL4E5_1[2].PA.MEAS) = -64.000

      I have not tried this so i'm not 100% sure it will work. I don't have any programs that use xact tpos dimensions for multiple features.
      The first option would only work if the alignment matches the FCF.

      I'm not getting any success with the second method.
      PC-DMIS 2016.0 SP8

      Jeff

      Comment


      • #4
        BL4E5_1[2].PA.MEAS would be the second dimension called BL4E5_1 (i.e. if looped)


        I think you might need a different method to access multiple features of a FCF dimension.


        Or, possibly, just possibly BL4E5_1.PA[2].MEAS might do it... (i.e. the second element in the collection of BL4E5_1.PA's)


        Automettech - Automated Metrology Technology

        Comment


        • #5
          Originally posted by Schrocknroll View Post

          The first option would only work if the alignment matches the FCF.

          I'm not getting any success with the second method.
          Thank you for your answers.

          Yes, ZUWEISEN/V3=STR(BL4E5_1[2].PA.MEAS) = -64.000 was also my first idea but is only working in context for loops with index numbers for complete dimensions or elements or so...

          Second method (ZUWEISEN/V2=STR(GEW_M16_318_2.PA.MEAS) = -64.000) seems to be not really clean, this was also my idea. Depends from used alignment inside FCF, so the values are different to position values inside FCF, even if alignments are invoked explicit inside routines. That is not really useful.

          Comment


          • #6
            Search for Composite FCF Position Variables


            in the code section.

            There should be something to help you.

            B&S CHAMELEON/PCDMIS CAD++ V2011

            There are no bugs, only "UNDOCUMENTED ENHANCEMENTS!"

            sigpic

            Comment


            • #7
              Use the GETTEXT variable. If you go to the help file and search "A List of Available Data Types", you can get all the string codes there. For your situation, I am going to use the 692 code to gather the MEAS number in your FCF:

              Code:
              ASSIGN/V1=GETTEXT(692,1,{BL4E5_1})
              And for all the measurement values below the first one, change the 1 to a 2, then the 2 to a 3, and so forth.

              Comment


              • #8
                Thank you! It works. But how can I get codes like 692 ?

                Comment


                • #9
                  Originally posted by dixon View Post
                  Thank you! It works. But how can I get codes like 692 ?
                  Gave you that info above: "If you go to the help file and search "A List of Available Data Types", you can get all the string codes there."

                  Comment

                  Related Topics

                  Collapse

                  Working...
                  X