Skip to main content
Question

Coordinate return in ZOS-API

  • October 20, 2023
  • 1 reply
  • 87 views

Daniel P. Calero

Hi,

I am trying to make a script in ZOS-API where I introduce some tilts and displacements. At one moment I want to make an automatic return to a given surface. 

Is there a way to use the coordinate return of the coordinate breaks in the ZOS-API?

Thanks,

Daniel

1 reply

Daniel P. Calero
  • Author
  • Infrared
  • 7 replies
  • October 20, 2023

I reply to myself:

The code to generate coordinate returns in Matlab is:

CB = TheLDE.GetSurfaceAt(XX);
CB.TiltDecenterData.CoordinateReturn = ZOSAPI.Editors.LDE.CoordinateReturnType.OrientationXYZ;
CB.TiltDecenterData.CoordinateReturnToSurface= YY;

With XX the surface where we want to introduce the return and YY the surface we want to return to