Skip to main content
Solved

ZOS API Total Track

  • August 11, 2022
  • 1 reply
  • 97 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.

View original
Did this topic help you find an answer to your question?

1 reply

MichaelH
Ansys Staff
Forum|alt.badge.img+2
  • Ansys Staff
  • 355 replies
  • 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.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings