hexagon logo

Displaying ref length.

I have a projected tol zone and am using legacy dim. 

Is there any way to add the length used for both position and perp to the report? 

I realize I could do a report command, but want to future proof it in case someone comes in and changes my code.

Parents Reply Children
  • What is the meaning of the 173 and 0 for the gettext method?

    Answered my own question, it is the data field number. I have experience with basic, but it has been a long time.

    Correct, 173,0 is the data field reference.  You can find this by setting the edit window to display command mode and then right click to bring up this menu...

    One you've changed the popup display to show data type information, you can hover over the various parameters of a command and it will show you the relevant details...

    There are two ways of using this information.  I could have used the text reference: ASSIGN/V1=GETTEXT("DIM_LENGTH",0,"PERP1"), but I chose to use the numeric reference: ASSIGN/V1=GETTEXT(173,0,"PERP1") instead.  The advantage of using the numeric reference is that it will work for any language whereas text strings are language specific.