Skip to main content
Solved

How to set a field coordinate variable using ZOS-API


P_Gallardo

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.

Best answer by Jeff.Wilde

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

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

Jeff.Wilde
Luminary
Forum|alt.badge.img+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


Forum|alt.badge.img+2

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


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