Extract an object's measurement details

You can use the USER_SYM_SUBROUTINE subroutine with the OB.ME argument in a complex User Symbolic to extract measurement details for a measurement type, part, or both.

Subroutine name

USER_SYM_SUBROUTINE

Subroutine argument

OB.ME

Field type

Measurement fields

Example of use

You could report only the dimensions of an object, ignoring other measurements like diameter or weight.

Argument syntax and parameters

The subroutine is a piece of code that uses ‘arguments’. An argument is a set of options that tells the subroutine what to do. The argument parameters are commonly separated by an exclamation mark.

The OB.ME subroutine argument structure is:

OB.ME!arg2!arg3!arg4

What the argument parameters mean

Argument parameter Required or optional? Explanation Example
arg2 Required The System ID of Measurement Type to be extracted.  
arg3 Optional Object Part Name.  
arg4 Optional

If set to 1, then use first available measurement, if no matching part.

If set to 2, then use the measurement for the Whole, if no matching part.

 

Example of subroutine argument

This argument will show the Diameter (DIAM) for Part 2 of an object.

OB.ME!DIAM!2