Skip to main content
Question

TOLR about GetOperandValue

  • 22 July 2024
  • 1 reply
  • 38 views

Hello,

How can I get the operand values?

I want to obtain the TOLR value.

Additionally, the commands for Show/Hide of MCE, TDE, and MFE are not working correctly. I would appreciate any advice. I am currently using MATLAB.

 

1 reply

Userlevel 7
Badge +2

@Seyoung Kim 

 

In Python (probably also in MATLAB), to get an operand value, you could use:

TheSystem.MFE.GetOperandAt(10).Value

Regarding HideMFE(), I also don’t get it to work in Interactive Extension. I checked that TheApplication.Mode was Plugin, as specified in the description of this method:

Closes this editor in the UI. Note that this only has an effect if the IOpticalSystem.Mode is ZOSAPI_Mode.Plugin.

It could be a bug. You may want to check with Zemax directly.

Take care,

 

David

Reply