Skip to main content
Answer

ZOS API Total Track

  • August 11, 2022
  • 1 reply
  • 116 views

Brian

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?

Best answer by MichaelH

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.

1 reply

MichaelH
Ansys Staff
Forum|alt.badge.img+2
  • Ansys Staff
  • Answer
  • August 11, 2022

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.