Skip to main content
Question

how to get Tilts from sequential file via ZOS API (and Python) ?

  • November 13, 2025
  • 0 replies
  • 7 views

Dear Community -

I try to retrieve tilt infromation from (in coodinate break surfaces) using the ZOP API and Python.

(Ansys Opticstudio 2024R2, Python 3.8 etc.)

Using the boilerplate files, getting thicknesses etc. works well.

 

    thissurf=TheLDE.GetSurfaceAt(i)
    print('\n',i)
    print('Type: ',thissurf.Type)
    print(thissurf.Material)
    print(thissurf.Radius)
    print(thissurf.Thickness)
    print(thissurf.TiltDecenterData.BeforeSurfaceTiltX)
    print(thissurf.TiltDecenterData.AfterSurfaceTiltX)
 

The attempt to get tilt and decenter data gives 0.0 in the coordinate brake surfaces, where tilts
where deliberately set.

Any idea what I might have misunderstood?

 Best regards, Stefan

0 replies

Be the first to reply!