zospy.functions.nce.object_change_type#
- zospy.functions.nce.object_change_type(obj: ZOSAPI.Editors.NCE.INCERow, new_type: constants.Editors.NCE.ObjectType | str)#
Simple function to change the object type in the NCE.
- Parameters:
- obj: ZOSAPI.Editors.NCE.INCERow
The Row/Object for which the change is to be made.
- new_type: zospy.constants.Editors.NCE.ObjectType | str
The new object type, either string (e.g. ‘StandardLens’) or int. The integer will be treated as if obtained from zp.constants.Editors.NCE.ObjectType.
- Returns:
- None
Examples
>>> import zospy as zp >>> zos = zp.ZOS() >>> zos.connect_as_extension() >>> oss = zos.get_primary_system() >>> oss.make_nonsequential() >>> newobj = oss.NCE.InsertNewObjectAt(1) >>> zp.functions.nce.object_change_type(newobj, zp.constants.Editors.NCE.ObjectType.StandardLens)