Skip to main content
Question

How to read Quick Sensitivity results with ZOS API

  • April 20, 2026
  • 1 reply
  • 16 views

mocquin
Ultraviolet

When trying to extract results from a Quick Sensitivity, either ran with GUI or API, I get the same message : 

tol_data_viewer = zos.system.Tools.OpenToleranceDataViewer()
tol_data_viewer.FileName = r"C:\full_path_to\quick_sens.ZTD"
tol_data_viewer.RunAndWaitForCompletion()

if not tol_data_viewer.Succeeded:
print(tol_data_viewer.ErrorMessage)
tol_data_viewer.Close()

cannot parse Sensitivity data: L'index se trouve en dehors des limites du tableau.

Are results from quick sentitivity supposed to be compatible with the read of the API ? because it is compatible in the GUI

1 reply

David.Nguyen
Luminary
Forum|alt.badge.img+2

@mocquin 

 

I tried your code with a dummy quick analysis (on the Double Gauss sample file), and it seems to work for me. Nothing gets printed (and I get a summary like in the UI). I used 2026 R1 with ZOSPy:

Python=3.11.15

ZOSPy=2.1.5

Pythonnet=3.0.5

Are you able to share your file?

Take care,

 

David