Solved

How to set a field coordinate variable using ZOS-API

  • 3 June 2023
  • 2 replies
  • 181 views

How do I set a field position (say field coordinate X) to a variable using ZOS-API in Python?

I am accessing the Fields information using

Fields = TheSystem.SystemData.Fields

It seems like the methods within the Fields object are slightly different to the MCE or LDE editors, as I can get a single field doing Fields.GetField(2) but I cannot find a method like SetSolveData(solve), which would work in the MCE.

Any idea on how to set a field coordinate to a variable?

Thanks.

icon

Best answer by Jeff.Wilde 4 June 2023, 22:47

View original

2 replies

Userlevel 7
Badge +3

As far as I can tell, Solve control for the Field Data Editor (FDE) has not been fully implemented in the API (for ZOS v.23.1).

However, it seems to be working okay in the Multi-Configuration Editor (MCE), and you can control the field variable status using the XFIE and YFIE operands.

 

For the MCE, the SetSolveData() method works properly.  I don’t use Python, but here is a Matlab version, and I assume there is a similar construct for Python:

 

 

Regards,

Jeff

Userlevel 6
Badge +2

Hi @P_Gallardo and @Jeff.Wilde ! I will submit a feature request on our side. Thank you.

Reply