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:
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:
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.