Skip to main content

I’m converting ZPL macros to ZOS API using C#

I have a macro that calls GETSYSTEMDATA 1

The contents of the operation at placed in a “vector” . Per the documentation, the vector’s "index” at 18 is  “Total Track”

I’ve having a hard time finding the corresponding API for accessing “Total Track” data.

Does anyone know the corresponding   ZOS API code?

Hey Brian,

I would simply use the GetOperandValue and the built-in TOTR operand from the MFE:

TheSystem.MFE.GetOperandValue(ZOSAPI.Editors.MFE.MeritFunctionOperand.TOTR, 0, 0, 0, 0, 0, 0, 0, 0)

For a lot of ZPL to API conversions, I would try to stick to as much built-in functionality (often through the MFE) to get the values since this will tend to have fewer bugs than implementing something yourself.


Reply