zospy.functions.lde.surface_change_type#
- zospy.functions.lde.surface_change_type(surface: ZOSAPI.Editors.LDE.ILDERow, new_type: constants.Editors.LDE.SurfaceType | str, filename=None)#
Change the type of a surface in the Lens Data Editor.
- Parameters:
- surfaceZOSAPI.Editors.LDE.ILDERow
The Row/Surface for which the change is to be made.
- new_typezospy.constants.Editors.LDE.SurfaceType | str
The new surface type, either string (e.g. ‘Standard’) or int. The integer will be treated as if obtained from zp.constants.Editors.LDE.SurfaceType.
- Returns:
- None
Examples
>>> import zospy as zp >>> zos = zp.ZOS() >>> oss = zos.connect() >>> new_surface = oss.LDE.InsertNewSurfaceAt(0) >>> zp.functions.lde.surface_change_type( ... new_surface, zp.constants.Editors.LDE.SurfaceType.Standard ... )