I try to use code from example e23s08_py for changing settings of analysis window, but meet error with
ray_settings.Field.UseAllFields()ray_settings.Wavelength.UseAllWavelengths()
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm 2023.1.2\plugins\python\helpers\pydev\pydevconsole.py", line 364, in runcode
coro = func()
^^^^^^
File "<input>", line 126, in <module>
AttributeError: 'IAS_' object has no attribute 'Field'
ray = TheSystem.Analyses.New_Analysis(ZOSAPI.Analysis.AnalysisIDM.RayFan)
ray_settings = ray.GetSettings()
ray_settings.NumberOfRays = max_rays / 2
ray_settings.Field.UseAllFields()
ray_settings.Wavelength.UseAllWavelengths()
ray.ApplyAndWaitForCompletion()
ray_results = ray.GetResults()
but even if I supress them ray_settings.NumberOfRays = 0
dont change default value, silently.