zospy.functions.lde.surface_change_type#
- zospy.functions.lde.surface_change_type(surface: ZOSAPI.Editors.LDE.ILDERow, new_type: constants.Editors.LDE.SurfaceType | str)#
Simple function to change the type of a surface in the LDE.
- Parameters:
- surface: ZOSAPI.Editors.LDE.ILDERow
The Row/Surface for which the change is to be made.
- new_type: zospy.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() >>> zos.connect_as_extension() >>> oss = zos.get_primary_system() >>> newsurf = oss.LDE.InsertNewSurfaceAt(0) >>> zp.functions.lde.surface_change_type(newsurf, zp.constants.Editors.LDE.SurfaceType.Standard)