zospy.functions.nce.object_change_type#
- zospy.functions.nce.object_change_type(obj: ZOSAPI.Editors.NCE.INCERow, new_type: constants.Editors.NCE.ObjectType | str)#
Change the object type in the Non-Sequential Component Editor.
- Parameters:
- objZOSAPI.Editors.NCE.INCERow
The Row/Object for which the change is to be made.
- new_typezospy.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() >>> oss = zos.connect() >>> oss.make_nonsequential() >>> new_object = oss.NCE.InsertNewObjectAt(1) >>> zp.functions.nce.object_change_type( ... new_object, zp.constants.Editors.NCE.ObjectType.StandardLens ... )